Skip to content

Repository files navigation

Referite-Backend

This is repository of backend for referite project.

Install & Run

How to install

make sure that you have python in your computer first, clone this repository by type this command in your terminal at your choosen path

git clone https://github.com/Referite/Referite-Backend.git Referite-Backend

go to project directory

cd Referite-Backend

next, you have to create file name .env to configuration

.env file template looks like sample.env you can modify value and copy it into .env Note that you may get your .env by contacted siravich.te@ku.th or preawpan.t@ku.th via email.

next, you have to create environment by typing this command

python -m venv env

then, activate the environment using

env\Scripts\activate.bat # Windows
source env/bin/activate # macOS and Linux

the terminal will using environment now then typing this command to install requirements

pip install -r requirements.txt

How to run

make sure you do all the install part and environment is activate.

now, to run server typing this command

uvicorn main:app

go to http://127.0.0.1:8000/ for application.

How to create database

  1. Create dump folder in mongodb folder.
  2. Copy referee folder from dump_data in the repository to new dump folder that you create in mongodb folder.
  3. Run this command in terminal or docker terminal:
mongorestore  dump/

About

this is backend for referite project

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages