This is the backend project for the fullstack test @ DSpot
In order to run the development server for first time you must:
-
Create a virtual environment (it is optional but highly recommended for python apps). You can follow my tutorial
-
Install dependencies:
pip install -r requirements.txt
- Create the database (A Sqlite DB for simplicity)
python manage.py migrate
- Fill the DB with fake data randomly generated (optional)
# Note that <count> is the number of how many profiles do you want to create
python manage.py fill_db <count>
- Run the project
python manage.py runserver
Open http://localhost:8000/api/v1/swagger with your browser to see the result.
The Django admin module was enabled to allow an easy way to mutate the data.
Create an user to sign in:
python manage.py createsuperuser
Thanks for the opportunity 😊