This is the git repository for the Bravosul Backend Challenge!
-
(Optional) You can install GitHub Desktop and clone from its interface to avoid ssh configuration.
-
To clone, go to your desired directory and run:
git clone https://github.com/castilhos90124/LibraryRestAPI.git
- To install your virtual environment, run these commands:
pipx install virtualenv
virtualenv --help
- To create your virtual environment, go to your project's directory and run:
virtualenv <virtualenv-name>
- To activate your virtual environment, run:
.\<name-to-virtualenv>\Scripts\activate
- After this, you should see your virtual env name in powershell.
(<virtualenv-name>) PS C:\Users\...
- To install Django in our virtual env, run:
python -m pip install Django
- To install Django REST Framework, run:
pip install djangorestframework
pip install markdown
pip install django-filter
- To create the database file, go to manage location folder and run:
python .\manage.py migrate
- Finally, to create a superuser, run:
python manage.py createsuperuser
- To start your local server, run:
python .\manage.py runserver
- To access it, go to http://127.0.0.1:8000/.