https://github.com/rblcoder/inventorymanagementapp
An inventory management app in Django
https://github.com/rblcoder/inventorymanagementapp
Last synced: about 1 year ago
JSON representation
An inventory management app in Django
- Host: GitHub
- URL: https://github.com/rblcoder/inventorymanagementapp
- Owner: rblcoder
- License: mit
- Created: 2023-02-23T10:13:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-17T12:49:38.000Z (about 3 years ago)
- Last Synced: 2025-02-08T18:45:59.389Z (over 1 year ago)
- Language: CSS
- Size: 1.38 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# inventoryManagementApp
An inventory management system
Create a virtual environment
```shell
python -m venv venv
```
Activate the virtual environment using
```shell
source venv/bin/activate
```
Upgrade pip
```shell
pip install --upgrade pip
```
Run migration
```shell
python manage.py migrate
```
Create a superuser
```shell
python manage.py createsuperuser
```
To run the application:
```shell
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
```shell
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
```shell
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
```shell
pip install awsebcli
```