Skip to content

Commit 5aecc1f

Browse files
Added frontend and modified backend
1 parent 72cf27d commit 5aecc1f

25 files changed

+14771
-15
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
backend/__pycache__/
33

44
database/
5+
6+
frontend/node_modules/

backend/main.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,33 +31,28 @@ class User(models.BaseUser):
3131
"""
3232
Fields "id", "is_active" and "is_superuser" are created by this model
3333
34-
Uncomment/Modify the below lines to add more fields for the user
34+
Modify the below lines to add more fields for the user
3535
36-
WARNING: You must also uncomment/Modify the same lines in the
36+
WARNING: You must also modify the same lines in the
3737
UserCreate model below
3838
"""
3939

40-
# firstName: str
41-
# lastName: str
42-
# phone: str
43-
44-
pass
40+
firstName: str
41+
lastName: str
42+
4543

4644
class UserCreate(models.BaseUserCreate):
4745
"""
4846
Fields "email" and "password" are created by this model
4947
50-
Uncomment/Modify the below lines to add more fields for the user
48+
Modify the below lines to add more fields for the user
5149
52-
WARNING: You must also uncomment/Modify the same lines in the
50+
WARNING: You must also modify the same lines in the
5351
User model above
5452
"""
5553

56-
# firstName: str
57-
# lastName: str
58-
# phone: str
59-
60-
pass
54+
firstName: str
55+
lastName: str
6156

6257

6358
class UserUpdate(User, models.BaseUserUpdate):
@@ -78,7 +73,13 @@ class UserDB(User, models.BaseUserDB):
7873

7974
# --- Authentication Method Setup ---------------------------------------------
8075

81-
# Learn more at https://frankie567.github.io/fastapi-users/configuration/authentication/
76+
"""
77+
Session duration/expiration can be changed through the lifetime_seconds
78+
attribute
79+
80+
Learn more at https://frankie567.github.io/fastapi-users/configuration/authentication/
81+
82+
"""
8283

8384
# Secret Key (must be changed from "SECRET")
8485
SECRET = "SECRET"

frontend/README.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2+
3+
## Available Scripts
4+
5+
In the project directory, you can run:
6+
7+
### `npm start`
8+
9+
Runs the app in the development mode.<br />
10+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11+
12+
The page will reload if you make edits.<br />
13+
You will also see any lint errors in the console.
14+
15+
### `npm test`
16+
17+
Launches the test runner in the interactive watch mode.<br />
18+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19+
20+
### `npm run build`
21+
22+
Builds the app for production to the `build` folder.<br />
23+
It correctly bundles React in production mode and optimizes the build for the best performance.
24+
25+
The build is minified and the filenames include the hashes.<br />
26+
Your app is ready to be deployed!
27+
28+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29+
30+
### `npm run eject`
31+
32+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33+
34+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35+
36+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37+
38+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39+
40+
## Learn More
41+
42+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43+
44+
To learn React, check out the [React documentation](https://reactjs.org/).
45+
46+
### Code Splitting
47+
48+
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
49+
50+
### Analyzing the Bundle Size
51+
52+
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
53+
54+
### Making a Progressive Web App
55+
56+
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
57+
58+
### Advanced Configuration
59+
60+
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
61+
62+
### Deployment
63+
64+
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
65+
66+
### `npm run build` fails to minify
67+
68+
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

0 commit comments

Comments
 (0)