The project includes a simple User Registration and Login System with a backend built using Flask and a frontend powered by React. All passwords are hashed with Bcrypt for security.
Clone the repository to your local machine
Create a .env folder in the root of your project to set up your own secret keys
SECRET_KEY=[your-secret-key-goes-here]
JWT_SECRET_KEY=[your-JWT-secret-key-goes-here]
-
Navigate to the Backend Directory:
cd backend
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Backend:
python run.py
The backend should now be running at http://localhost:5000
.
-
Navigate to the Frontend Directory:
cd frontend/react-app
-
Install Node Modules:
npm install
-
Run the Frontend:
npm start
The frontend development server should now be running at http://localhost:3000
.
Open your web browser and navigate to http://localhost:3000
to access the application. Register a new account, log in, and explore the user homepage with last login details and current session time.