/LibraryMS-Backend

Primary LanguagePythonMIT LicenseMIT

LibraryMS-Backend

Postman Docs: https://documenter.getpostman.com/view/10695490/UUy67Qim#c8aa064c-1d2d-4b6c-bbd3-60f07b539842

Setup (for Ubuntu and Mac):

Clone the repository

git clone https://github.com/sp35/LibraryMS-Backend.git

Make a new Virtual Environment

virtualenv -p python3 venv

Activating the Virtual Environment

source venv/bin/activate

Shifitng to the project repository

cd LibraryMS-Backend

Install the required modules

pip install -r utils/requirements.txt

Run the migrations and Synchronize the Database using

python manage.py migrate

Create a superuser

python manage.py createsuperuser

Add dummy data (optional)

cd utils && python library_populate.py

Run the server

python manage.py runserver

Now open up your browser at http://localhost:8000/ and the API is hosted on your local setup.