- React - A JavaScript library for building user interfaces.
- JavaScript - Programming language used for frontend development.
- Spring Boot - A Java-based framework for building web applications and microservices.
- Java - Programming language used for backend development.
- MongoDB - A NoSQL database used to store application data.
- MongoDB Atlas - A cloud database service for MongoDB.
- Netlify - A platform for deploying frontend applications with continuous integration and deployment
Lab 3 extends the initial dating application by adding JWT-based authentication to secure user access and manage sessions.
Register and log in, Receive a JWT token upon login, Access protected routes using the token
This project consists of both a frontend and backend that are used to manage a dating application. The frontend is a React application, while the backend is a Spring Boot application that connects to MongoDB.
The frontend is a React application that interacts with the backend API to handle user registration, authentication, and other user-related actions.
The frontend is deployed on Netlify. You can access the live version of the application here:
- Clone the repository:
git clone https://github.com/your-repository-url.git cd your-repository-folder
Install dependencies and run:
npm install
npm start
Visit the app in your browser at http://localhost:3000
Backend The backend is a Spring Boot application that uses MongoDB as the database. It provides RESTful APIs to interact with the frontend.
Steps to run the backend locally Clone the backend repository:
https://github.com/anastasiia-darmohrai/dating-app-backend.git
Set up environment variables for MongoDB connection:
Create a .env file in the root directory of the backend project (or modify the application.properties or application.yml file) and define the following variables: Example
MONGO_DB_USERNAME=your-mongodb-username
MONGO_DB_PASSWORD=your-mongodb-password
SPRING_DATA_MONGODB_URI=mongodb+srv://your-mongodb-username:your-mongodb-password@cluster0.mongodb.net/datingapp
SPRING_DATA_MONGODB_DATABASE=datingapp
SPRING_SECURITY_CSRF_DISABLED=true
Install dependencies and run the Spring Boot application:
./mvnw spring-boot:run