Skip to content

jyotsanh/Django-CRUD-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Eyemate Project CRUD API

This project is a CRUD (Create, Read, Update, Delete) API built using Django Rest Framework. This API will be extensively used in our Eyemate project to manage various database operations.

Getting Started

To get the project up and running, follow these instructions.

Prerequisites

Make sure you have the following installed on your local machine:

  • Python (version 3.6 or above)
  • Django
  • Django Rest Framework

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/yourrepository.git
  2. Navigate to the project directory:
    cd Django-CRUD-API
    cd myapi
  3. Create a virtual environment:
    python -m venv env
  4. Activate the virtual environment:
    • On Windows:
      .\env\Scripts\activate
    • On macOS and Linux:
      source env/bin/activate
  5. Install the required dependencies:
    pip install -r requirements.txt

Database Migrations

Run the following commands to set up the database:

  1. Make migrations:
    python manage.py makemigrations
  2. Apply migrations:
    python manage.py migrate

Running the Server

To start the development server, navigate to the myapi directory and run the following command:

python manage.py runserver

About

A side project Django API for CRUD application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages