Emericdefay / OCR_P12

CRM Management

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Epic-Events

Create a secured RESTful API using Django REST

Status GitHub Issues GitHub Pull Requests License


RESTful API for Epic Events

πŸ“ Table of Contents


About

This project provide a RESTful API localy.
Allow developper to create the front-end.

🏁 Getting Started

Those instructions will bring you the API at the url : http://127.0.0.1:8000/.

Prerequisites

Before started to setup the RESTful API, you need to get :

  • Python >= 3.6
  • Postman
  • Git
  • PostgreSQL

It will provide you tools to extract, run and detail the API.

Installing

  • Create a folder
  • Clone the project git clone inside the folder
  • Go to the folder OCR_P12 cd OCR_P12
  • Create environment named env python -m venv env
  • Start the environment env\Scripts\activate.bat
  • Install requirements pip install -r requirements.txt
  • Run server python CRM/manage.py runserver

Linter

If you want to check the PEP8 from the code :

  • From OCR_P12 go to CRM cd CRM
  • run flake8

Tests

For potential future updates, tests have been made.
To launch tests :

  • from OCR/P12, change branch -> tests : git checkout tests
  • Instead of running server python CRM/manage.py test
  • When tests are done, switch bach to main : git checkout main

🎈 Usage

Once you ran the server, you can check those endpoints and get documentation on them from the Postman API Documentation.

The collection : Postman API Collection.

⛏️ Built Using

Recommandations

✍️ Authors

About

CRM Management


Languages

Language:Python 100.0%