Code Monkey home page Code Monkey logo

dev_project's Introduction

IDP App Backend

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.

Table of Contents

Installation

To get started with the App backend, follow these steps:

  1. Clone the repository:

    git clone <repository-url>
    cd adoption-app-backend
    
    
  2. Create and activate virtual environment:

Create virtual environment

python -m venv venv

Activate virtual environment

On Windows

venv\Scripts\activate

On macOS/Linux

source venv/bin/activate

  1. Install Dependencies

pip install -r requirements.txt

Setup

  1. Database Setup Ensure Database settings is configured in settings.py file: For the database you can uncomment the sqlite settings in the settings.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

Apply migrations to create database tables:

python manage.py makemigrations
python manage.py migrate

Create a superuser to access the Django admin interface and API endpoints:

While in the base directory do:
py create_superuser_script.py

The create_superuser_script.py can be edited

Running the Server

To run the Django development server:

python manage.py runserver

The server will start at
http://localhost:8000/.

Go to http://localhost:8000/admin to visit the admin interface.

API Documentation

To view the API Doc go to:

http://localhost:8000/api/swagger/

dev_project's People

Contributors

haleem001 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.