Skip to content

WebTechCNU/labs-1-4-assignment-anastasiia-darmohrai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Review Assignment Due Date

Laboratory Assignment 1,3: REST API Authorization with JWT token

Technologies Used

Frontend:

  • React - A JavaScript library for building user interfaces.
  • JavaScript - Programming language used for frontend development.

Backend:

  • Spring Boot - A Java-based framework for building web applications and microservices.
  • Java - Programming language used for backend development.

Database:

  • MongoDB - A NoSQL database used to store application data.
    • MongoDB Atlas - A cloud database service for MongoDB.

Deployment:

  • 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.

Authorization feature:

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.

Frontend

The frontend is a React application that interacts with the backend API to handle user registration, authentication, and other user-related actions.

Frontend Deployment

The frontend is deployed on Netlify. You can access the live version of the application here:

Frontend Demo

Steps to run the frontend locally

  1. 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

About

webtechcnu-classroom-modern-web-tech-labs-1-4-assignment-template-backend created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.3%
  • HTML 9.7%
  • CSS 6.0%