Visit a Website>>AaplLonar
This is Sequence Diagram For Backend

This is Sequence Diagram For Frantend

AapalLonar is a project built with Spring Boot for the backend. This guide provides step-by-step instructions on setting up the project, running it locally, and deploying it on AWS.
- Prerequisites
- Project Setup
- Run the Project Locally
- API Endpoints
- Database Configuration
- Deploying on AWS
- Contributing
Before setting up the project, ensure you have the following installed:
- Java 17 or later
- Spring Boot
- Maven (for dependency management)
- MongoDB (as the database)
- Git
- AWS Account (for deployment)
-
Clone the repository:
git clone https://github.com/Radhesham7507/AapalLonar.git cd AapalLonar -
Configure application properties: Open
src/main/resources/application.propertiesorapplication.ymland update MongoDB connection details accordingly. -
Install dependencies:
mvn clean install
-
Start MongoDB Ensure MongoDB is running locally or use a cloud MongoDB service.
-
Run the Spring Boot application:
mvn spring-boot:run
-
Access the API: The application should now be running on
http://localhost:8080
Refer to the API documentation or swagger-ui for available endpoints.
- Swagger UI (if enabled):
http://localhost:8080/swagger-ui.html
Modify application.properties or application.yml with the correct MongoDB details:
spring.data.mongodb.uri=mongodb://localhost:27017/your_databasegoDB details:
spring.data.mongodb.uri=mongodb://localhost:27017/your_database
If using a cloud-based MongoDB service, replace localhost:27017 with the appropriate connection string.If using a cloud-based MongoDB service, replace localhost:27017 with the appropriate connection string.
---OR if You Are Using Mysql ---
Modify application.properties or application.yml with the correct database details:
spring.datasource.url=jdbc:mysql://localhost:5432/your_database
spring.datasource.username=your_username
spring.datasource.password=your_password
spring.jpa.hibernate.ddl-auto=update- Go to AWS Console → EC2 → Launch Instance
- Choose an OS (Amazon Linux, Ubuntu, etc.)
- Select instance type (t2.micro for free tier)
- Configure security group (allow port 8080 for HTTP access)
- Launch instance and connect via SSH
sudo yum update -y
sudo yum install java-17-openjdk -y
sudo yum install git -ygit clone https://github.com/Radhesham7507/AapalLonar.git
cd AapalLonarmvn clean packagejava -jar target/*.jar- Create a MongoDB Atlas account and cluster
- Update
application.propertieswith the Atlas connection string
Using NGINX:
sudo yum install nginx -y
sudo systemctl start nginx
sudo systemctl enable nginxUpdate the NGINX config to proxy requests to localhost:8080.
Feel free to contribute by creating issues or submitting pull requests.
