This is repository of backend for referite project.
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-Backendgo to project directory
cd Referite-Backendnext, 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 envthen, activate the environment using
env\Scripts\activate.bat # Windows
source env/bin/activate # macOS and Linuxthe terminal will using environment now then typing this command to install requirements
pip install -r requirements.txtmake sure you do all the install part and environment is activate.
uvicorn main:appgo to http://127.0.0.1:8000/ for application.
- Create
dumpfolder in mongodb folder. - Copy
refereefolder fromdump_datain the repository to newdumpfolder that you create in mongodb folder. - Run this command in terminal or docker terminal:
mongorestore dump/