Date Created: July 07, 2020
Date Modified: - July 20, 2020
Group: 5
Heroku Frontend Link: https://rentalvista.herokuapp.com/
Heroku Back-end Link: https://rentalvista-api.herokuapp.com/
Feature Developed: User Management System
I have created user management feature for assignment 4. In this assignment, mainly, I have created backend part and some frontend part. I have developed API to signup, login, edit profile, change password, forgot password and fetch user data. On frontend part, I have developed two new pages, forgot password and change password pages. (Note: All pages for user management feature were developed earlier.)
- Files created apart from existing files: 1.
Note: Base project was setup by me.
- Created additional python files in services directory:
- Endpoints created in
app.py
file:- Signup endpoint: /users/login
- Login endpoint: /users/login
- Forgot password endpoint: /users/forgot
- Change password endpoint: /users/change
- Fetching user details endpoint: /users/user
- Edit user details endpoint: /users/edit
- Logout endpoint: /users/logout
To use code base follow the steps given below:
- Clone the repository using https://github.com/SahilFruitwala/rentalvista-backend.git
- Go to the directory using terminal
- Install dependencies using
pip install -r requirements.txt
- Create .env file into the root directory of project
- Add following environment variables
Note: In Mongodb Atlas url remove last part which looks like
URI = <mongodb atlas url> SECRET_KEY = <secret-key anything> SENDGRID_API_KEY = <API key of twilio> MAIL_DEFAULT_SENDER = <single sender email from twilio>
&w=majority
. This is because when we set environment variable on heroku it was not allowing to add data with & - Run command
python app.py
in windows and for mac/linuxpython3 app.py
To use code base follow the steps given below:
- Clone the repository using https://github.com/SahilFruitwala/rental-vista.git
- Go to the directory using terminal
- Install dependencies using
npm install
- Create .env file into the root directory of project
- Add following environment variables
REACT_APP_REGISTER_URL=<API Endpoint>
Note: For local server addhttp:
and make sure API-endpoint/Server supports CORS. For more details regarding CORS go to this Link. After adding environment variable into.env
file one has to restart development server. - Run command
npm run start
Note: Base project was setup by me.
- Created additional python files in services directory:
- Endpoints created in
app.py
file:- Signup endpoint: /users/login
- Login endpoint: /users/login
- Forgot password endpoint: /users/forgot
- Change password endpoint: /users/change
- Fetching user details endpoint: /users/user
- Edit user details endpoint: /users/edit
- Logout endpoint: /users/logout