Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

kartikeybhardwaj/circuit-bapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Circuit Backend API

python3 -m venv env

source env/bin/activate

deactivate

pip3 install falcon

pip3 install falcon-cors

pip3 install pymongo

pip3 install jsonschema

pip3 install gunicorn

gunicorn -b localhost:3200 app:api

gunicorn -b localhost:3200 app:api --reload

gunicorn -b localhost:3200 app:api --daemon

gunicorn -b localhost:3200 app:api --daemon --reload

mongod --dbpath "<PATH_LOCATION_HERE>"
mongo
use circuit;
db.createUser({
	"user": "kart",
	"pwd": "oon",
	"roles": ["readWrite", "dbAdmin"]
});
mongo "mongodb://kart:oon@127.0.0.1:27017/circuit"

RESPONSE IDs

211 - All Success
111 - Unknown Failure
110 - Validation Failure, check message
109 - Unauthorized access
108 - Already exists
107 - Does not exists
103 - Invalid request
102 - Invalid token
101 - Token expired

About

Circuit Backend API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages