-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/tusharvickey1999/FastAPI-Mo…
- Loading branch information
Showing
1 changed file
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
# FastAPI-MongoDB | ||
# FastAPI-MongoDB-Cloud-Storage | ||
|
||
To run on local environment, first we need to set some enviornment variables related to configuration | ||
- | ||
export CLIENT_ID = your client id from the google auth server | ||
export CLIENT_SECRET = your client secret from the google auth server | ||
export DOMAIN = http://localhost:8000 | ||
export USERNAME = your mongodb login username | ||
export PASS = your mongodb login pass | ||
|
||
To run the uvicorn server | ||
- | ||
uvicorn main:app | ||
|
||
To run on heroku environment, we need to save config variable in heroku setting page | ||
- | ||
CLIENT_ID: your client id from the google auth server | ||
CLIENT_SECRET: your client secret from the google auth server | ||
DOMAIN: your app domain url on heroku | ||
USERNAME: your mongodb login username | ||
PASS: your mongodb login pass | ||
and then deploy the app |