Skip to content

Latest commit

 

History

History
63 lines (51 loc) · 1.41 KB

README.md

File metadata and controls

63 lines (51 loc) · 1.41 KB

LibraryRestAPI

This is the git repository for the Bravosul Backend Challenge!

Development Environment Setup

Cloning Project

  1. (Optional) You can install GitHub Desktop and clone from its interface to avoid ssh configuration.

  2. To clone, go to your desired directory and run:

git clone https://github.com/castilhos90124/LibraryRestAPI.git

VirtualEnv Setup

  1. To install your virtual environment, run these commands:
pipx install virtualenv
virtualenv --help
  1. To create your virtual environment, go to your project's directory and run:
virtualenv <virtualenv-name>
  1. To activate your virtual environment, run:
.\<name-to-virtualenv>\Scripts\activate
  1. After this, you should see your virtual env name in powershell.
(<virtualenv-name>) PS C:\Users\...
  1. To install Django in our virtual env, run:
python -m pip install Django
  1. To install Django REST Framework, run:
pip install djangorestframework
pip install markdown
pip install django-filter
  1. To create the database file, go to manage location folder and run:
python .\manage.py migrate
  1. Finally, to create a superuser, run:
python manage.py createsuperuser

Starting Server

  1. To start your local server, run:
python .\manage.py runserver
  1. To access it, go to http://127.0.0.1:8000/.