Welcome to the backend repository for the IDP App built with Django. This repository contains the server-side implementation including API endpoints, database models, and business logic for the IDP app.
To get started with the App backend, follow these steps:
-
Clone the repository:
git clone <repository-url> cd adoption-app-backend
-
Create and activate virtual environment:
python -m venv venv
venv\Scripts\activate
source venv/bin/activate
- Install Dependencies
pip install -r requirements.txt
- Database Setup
Ensure Database settings is configured in
settings.py
file: For the database you can uncomment the sqlite settings in thesettings.py
and comment the postgresql setting to use sqlite as your database or do vice versa and setup a .env file and add your postgres credentials to use postgres
python manage.py makemigrations
python manage.py migrate
While in the base directory do:
py create_superuser_script.py
The create_superuser_script.py
can be edited
python manage.py runserver
The server will start at http://localhost:8000/
.
Go to http://localhost:8000/admin
to visit the admin interface.
To view the API Doc go to:
http://localhost:8000/api/swagger/