Skip to content

Commit 4f4d3a0

Browse files
updated readme a bit
1 parent 0a720cf commit 4f4d3a0

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.env.dist

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
DATABASE_HOSTNAME=localhostfornow
1+
DATABASE_HOSTNAME=localhost
22
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

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ Open-source starter powered by FastAPI on top of **[Soft UI Dashboard](https://g
5151
1. create a virtual environment with the following command (always without the quotes): `python -m venv venv`
5252
2. activate the virtual environment, for linux/ubuntu: `source/bin/activate`, for windows `source/Scripts/activate`
5353
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`
5557

5658
@ToDo
5759

src/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class Settings(BaseSettings):
88
database_username: str
99
secret_key: str
1010
algorithm: str
11-
debugging: int
1211
access_token_expire_minutes: int = 30
1312

1413
class Config:

0 commit comments

Comments
 (0)