gabcares commited on
Commit
b40bbc0
·
verified ·
1 Parent(s): 4d1c551

Update config.py

Browse files

Use in memory cache and sqlite db

Files changed (1) hide show
  1. config.py +41 -41
config.py CHANGED
@@ -1,41 +1,41 @@
1
- from pathlib import Path
2
-
3
- # ENV when using standalone uvicorn server running FastAPI in api directory
4
- ENV_PATH = Path("../env/api.env")
5
-
6
- ONE_DAY_SEC = 24*60*60
7
-
8
- ONE_WEEK_SEC = ONE_DAY_SEC*7
9
-
10
- # Cache
11
- USE_REDIS_CACHE = True # Change to True to use Redis Cache
12
-
13
- # Postgres
14
- USE_POSTGRES_DB = True # Change to True to use Posgres DB
15
-
16
-
17
- DESCRIPTION = """
18
- This API is the backend of the student management system.\n
19
-
20
- Manages students, instructors, courses, and enrollments within an educational institution.\n
21
-
22
- Provides functionalities to manage students, instructors, and courses, as well as
23
- to enroll students in courses and assign grades.\n
24
-
25
- - Add, remove, and update students and instructors
26
- - Add, remove, and update courses
27
- - Enroll students in courses
28
- - Assign grades to students for specific courses
29
- - Retrieve a list of students enrolled in a specific course
30
- - Retrieve a list of courses a specific student is enrolled in
31
-
32
-
33
- ### GitHub
34
- [![GitHub Logo](https://github.com/favicon.ico) D0nG4667](https://github.com/D0nG4667/Student-Management-System)
35
-
36
- ### Explore this api below
37
- ⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
38
-
39
-
40
- © 2024, Made with 💖 [Gabriel Okundaye](https://www.linkedin.com/in/dr-gabriel-okundaye)
41
- """
 
1
+ from pathlib import Path
2
+
3
+ # ENV when using standalone uvicorn server running FastAPI in api directory
4
+ ENV_PATH = Path("../env/api.env")
5
+
6
+ ONE_DAY_SEC = 24*60*60
7
+
8
+ ONE_WEEK_SEC = ONE_DAY_SEC*7
9
+
10
+ # Cache
11
+ USE_REDIS_CACHE = False # Change to True to use Redis Cache
12
+
13
+ # Postgres
14
+ USE_POSTGRES_DB = False # Change to True to use Posgres DB
15
+
16
+
17
+ DESCRIPTION = """
18
+ This API is the backend of the student management system.\n
19
+
20
+ Manages students, instructors, courses, and enrollments within an educational institution.\n
21
+
22
+ Provides functionalities to manage students, instructors, and courses, as well as
23
+ to enroll students in courses and assign grades.\n
24
+
25
+ - Add, remove, and update students and instructors
26
+ - Add, remove, and update courses
27
+ - Enroll students in courses
28
+ - Assign grades to students for specific courses
29
+ - Retrieve a list of students enrolled in a specific course
30
+ - Retrieve a list of courses a specific student is enrolled in
31
+
32
+
33
+ ### GitHub
34
+ [![GitHub Logo](https://github.com/favicon.ico) D0nG4667](https://github.com/D0nG4667/Student-Management-System)
35
+
36
+ ### Explore this api below
37
+ ⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
38
+
39
+
40
+ © 2024, Made with 💖 [Gabriel Okundaye](https://www.linkedin.com/in/dr-gabriel-okundaye)
41
+ """