An inventory management system
Create a virtual environment
python -m venv venv
Activate the virtual environment using
source venv/bin/activate
Upgrade pip
pip install --upgrade pip
Run migration
python manage.py migrate
Create a superuser
python manage.py createsuperuser
To run the application:
python manage.py runserver
To deploy this to Elastic Beanstalk by uploading a zip file containing the code: To zip the files for uploading to Elastic Beanstalk
git archive -v -o myapp.zip --format=zip HEAD
After uploading the zip file from Elastic Beanstalk console, edit enviroment variables in Elastic Beanstalk console under environment -> Configuration -> Software -> Environment Properties
set APP_HOST to the url of the Elastic Beanstalk application
set SECRET_KEY
To generate one, refer to https://www.educative.io/answers/how-to-generate-a-django-secretkey or
python manage.py shell
from django.core.management.utils import get_random_secret_key
get_random_secret_key()
set IS_DEVELOPMENT to False
Used the bootstrap theme https://startbootstrap.com/previews/sb-admin
To install Elasticbeanstalk cli
pip install awsebcli