File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
- DATABASE_HOSTNAME=localhostfornow
1
+ DATABASE_HOSTNAME=localhost
2
2
DATABASE_PORT=5432
3
- DATABASE_PASSWORD=mypassword
4
- DATABASE_NAME=mydbname
5
- DATABASE_USERNAME=probablyroot
6
- SECRET_KEY=000secretkey000
7
- ALGORITHM=SOMEALGORITHM
8
- ACCESS_TOKEN_EXPIRE_MINUTES=300
3
+ DATABASE_PASSWORD=somepassword
4
+ DATABASE_NAME=somedbname
5
+ DATABASE_USERNAME=mayberoot
6
+ SECRET_KEY=thisisasecret
7
+ ALGORITHM=HS256
8
+ ACCESS_TOKEN_EXPIRE_MINUTES=30
9
+ DEBUGGING=1
Original file line number Diff line number Diff line change @@ -51,7 +51,9 @@ Open-source starter powered by FastAPI on top of **[Soft UI Dashboard](https://g
51
51
1 . create a virtual environment with the following command (always without the quotes): ` python -m venv venv `
52
52
2 . activate the virtual environment, for linux/ubuntu: ` source/bin/activate ` , for windows ` source/Scripts/activate `
53
53
3 . install the dependencies: ` pip install -r requirements.txt `
54
- 4 . run the application ` uvicorn src.app:app --reload `
54
+ 4 . create a ` .env ` file, then copy and paste-in the contents of ` .env.dist ` , and fill in the configuration with your credentials.
55
+ > setting the ` debugging ` config to ` 1 ` will start the app with sqlite, setting it to ` 0 ` will start the app with mysql.
56
+ 5 . run the application: ` uvicorn src.app:app --reload `
55
57
56
58
@ToDo
57
59
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ class Settings(BaseSettings):
8
8
database_username : str
9
9
secret_key : str
10
10
algorithm : str
11
- debugging : int
12
11
access_token_expire_minutes : int = 30
13
12
14
13
class Config :
You can’t perform that action at this time.
0 commit comments