Backend | Web |
---|---|
... | ... |
Backend | Web |
---|---|
localhost:8080 | --- |
- Build system
docker compose -f local.yaml up --build -d --remove-orphans
Or using makefile
make build # Build container
make down # Shutdown the container
- create Virtual environment (optional/suggest) Go to project folder, run these commands
virtualenv env
- Activate virtual env
For deactivate the env later, use
deactivate
cmd.
source env/bin/activate
- Install Dependencies
python -m pip install -r requirements/local.txt
-
Connect the Database he project use SQLite for default. To connect to custom database, config the DATABASE VARIABLE in
config/settings/base.py
.Follow the Django docs for more details.
-
Migrate database adn staticfiles
python manage.py migrate --no-input
python manage.py collectstatic --no-input
- Run the server through network
python manage.py runserver 0.0.0.0:8000
- Seed users instance
make seed_users count=20
- Seed users' relationships
make seed_relationships count=50
- Seed stories
make seed_stories count=50
For more commands -> Makefile
If you have suggestions for improvements or spot any issues with the project, feel free to submit an issue or pull request to this repo