CBV3 structure - nuageklow/backend GitHub Wiki
CBV3 Structures
Local development environment details
Codebuddies Version 3 consists of the following components:
- Nginx, a web server - view the application or make API calls: http://localhost:8000
- Mailhog, a dummy mailbox: http://localhost:8025
- The Django web application
- Adminer, a DB front-end: http://localhost:8001
- A PostgreSQL database
postgres://babyyoda:mysecretpassword@localhost:5432/codebuddies
You can access the database through the Adminer front-end or using a local PostgresSQL client
![screenshot of Adminer](https://i.imgur.com/Dtg5Yel.png =250x)
Log into the server
To log into the server http://localhost:8000/admin
, you can create a superuser account by running the following in the terminal:
docker-compose run --rm app ./manage.py createsuperuser
Populating the database
You can populate the database with some random test data for development purposes by running
docker-compose run --rm app ./manage.py init_data