Skip to content

LMartinezEXEX/sdv-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend repository for Secret Voldemort

This rest-ful API was developed with FastAPI and using PonyORM database creation and management. After starting the server you can view and test all the endpoints in: http://127.0.0.1:8000/api/docs

If this is not enough and you want some beautiful (don't jugde us) frontend for this backend we have you covered: Frontend repository for Secret Voldemort

Installation

We encourage you to use a python virtual environment!

  1. Download the repository
    $ git clone https://github.com/LMartinezEXEX/sdv-backend.git

  2. Navigate inside the downloaded repository
    $ cd sdv-backend/

  3. Initialize python virtual environment
    $ python3 -m venv venv

  4. Activate/Start up the virtual environment
    $ source venv/bin/activate

  5. Install all the requirements needed (there are many other you can check in the requirements.txt) for this proyect with:
    $ pip3 install -r requirements.txt

Now you're ready to go!

Start the server

To set up and start the server we use uvicorn 🦄, don't worry, it was installed within the requirements!

Just start it with:
$ uvicorn main:app

If you want to make your own changes to the repository, add --reload, so the server restarts when you save a modified file within the server files.

Testing

We've make some tests for you to run if you decide you want to make some enhancement in the current code!

You should run it with Pytest, it was installed within the requirements too:

python -m pytest API/TestAPI/test_file.py

About

Backend repository for SV - 2020

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •