From e15b10ea93039204411a2f65527a70fb06cb97a1 Mon Sep 17 00:00:00 2001 From: Mukund Deotale Date: Tue, 6 Jan 2026 16:25:40 +0530 Subject: [PATCH 1/6] Update README.md --- frontend/README.md | 62 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/frontend/README.md b/frontend/README.md index b056748..e9118bd 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -1,3 +1,63 @@ +# React Project Setup and Deployment Guide for Windows + +This guide provides step-by-step instructions for setting up a React project. + +## 1. Setting Up the React Project + +### Install Node.js and npm + +```shell +apt update && apt install nodejs npm -y +``` + +### Verify Installation + + +```shell +node -v +npm -v +``` + + +## 2. Install Dependencies + +To install the necessary dependencies for your project, run the following command: + +```shell +npm install +``` + +## 3. Build the React Application for Production + +Update backend URL in .env file + +```shell +vim .env + + VITE_API_URL = "http://:8080/api" +``` + +To build the React application for production, run: + +```shell +npm run build +``` + +This will create a dist/ directory in your project containing optimized, production-ready files. + +## 4. Deploy production-ready files on s3 or apache2 server + +```shell +apt install apache2 -y +systemctl start apache2 +cp -rf dist/* /var/www/html/ +``` + +You can access the application on http://localhost:80 + + +--- + # CLOUDBLITZ Student Management Frontend A modern, scalable React application built with industry best practices for managing student registrations and data. @@ -292,4 +352,4 @@ For support and questions: - [ ] Advanced analytics dashboard - [ ] Multi-language support - [ ] Dark mode theme -- [ ] Advanced user roles and permissions \ No newline at end of file +- [ ] Advanced user roles and permissions From fbc3c71494924b1176127fae2bbfad4647cb5785 Mon Sep 17 00:00:00 2001 From: Mukund Deotale Date: Tue, 6 Jan 2026 16:27:05 +0530 Subject: [PATCH 2/6] Update README.md --- frontend/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/README.md b/frontend/README.md index e9118bd..1d133af 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -31,10 +31,13 @@ npm install Update backend URL in .env file +```bash +vim .env +``` ```shell -vim .env - - VITE_API_URL = "http://:8080/api" +VITE_API_URL=http://$BACKEND:8080/api +VITE_API_BASE_URL=http://$BACKEND:8080 +VITE_APP_TITLE=EasyCRUD Student Registration ``` To build the React application for production, run: From fd0f744b72a1221bf27663097dcd1b7a6c6e1768 Mon Sep 17 00:00:00 2001 From: Mukund Deotale Date: Tue, 6 Jan 2026 16:29:18 +0530 Subject: [PATCH 3/6] Update Readme.md --- backend/Readme.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/backend/Readme.md b/backend/Readme.md index 1d69609..57812d0 100644 --- a/backend/Readme.md +++ b/backend/Readme.md @@ -40,13 +40,15 @@ mvn -version ### Update DB credentials in application.properties: -```shell +```bash vim backend/src/main/resources/application.properties - - server.port=8080 - spring.datasource.url=jdbc:mariadb://:3306/ - spring.datasource.username= - spring.datasource.password= +``` +```shell +spring.datasource.url=jdbc:mariadb://localhost:3306/student_db +spring.datasource.username=your_username +spring.datasource.password=your_password +spring.jpa.hibernate.ddl-auto=validate +spring.jpa.show-sql=true ``` ### Build springboot Application using maven @@ -70,4 +72,5 @@ http://localhost:8080 ### Step 5: Keep the Application Running -To keep the application running in the background, you can use nohup or a similar method. \ No newline at end of file + +To keep the application running in the background, you can use nohup or a similar method. From 1f96ea1888d03673d7cccafbddd2bab378dbe0cf Mon Sep 17 00:00:00 2001 From: Mukund Deotale Date: Tue, 6 Jan 2026 16:30:04 +0530 Subject: [PATCH 4/6] Update Readme.md --- backend/Readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/Readme.md b/backend/Readme.md index 57812d0..1541b84 100644 --- a/backend/Readme.md +++ b/backend/Readme.md @@ -39,6 +39,9 @@ mvn -version ## Step 3: Build the Spring Boot Application ### Update DB credentials in application.properties: +``` +pwd +``` ```bash vim backend/src/main/resources/application.properties @@ -74,3 +77,4 @@ http://localhost:8080 To keep the application running in the background, you can use nohup or a similar method. + From e880c8c64940d370b753c3e44753478b00fdf2c7 Mon Sep 17 00:00:00 2001 From: Mukund Deotale Date: Tue, 6 Jan 2026 16:33:34 +0530 Subject: [PATCH 5/6] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f60d99..d92ff6e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ +## set up db_instance with mariadb engion +## create 2 Ec2 instances +## crete Sequrity group +Screenshot 2026-01-06 at 4 31 52 PM + + + +--- # EasyCRUD - Student Registration System A full-stack web application for student registration with a React frontend and Spring Boot backend. @@ -325,4 +333,4 @@ For issues and questions: 1. Check the troubleshooting section 2. Review the database setup guide 3. Check application logs for error messages -4. Verify all prerequisites are installed \ No newline at end of file +4. Verify all prerequisites are installed From 61aeb5228203e6d14af780cd6ae7a2b7a2f82f0c Mon Sep 17 00:00:00 2001 From: Mukund Deotale Date: Tue, 6 Jan 2026 16:57:46 +0530 Subject: [PATCH 6/6] Update README.md --- README.md | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/README.md b/README.md index d92ff6e..8ccdcb4 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,65 @@ ## crete Sequrity group Screenshot 2026-01-06 at 4 31 52 PM +--- +# MariaDB Setup and Configuration Guide for Windows + +This guide explains how to set up MariaDB, create a database, and Create Database User + +## 1. Installing MariaDB + +Installing MariaDB on Ubntu + +```shell +apt update && apt install mariadb-server -y +``` + +## 2. Securing MariaDB + +Open the Command Prompt as Administrator and run the following command to secure your installation: + +```shell + +mysql_secure_installation +``` + +Follow the prompts to: +Set a root password. +Remove insecure default users and test databases. +Disable remote root login. + +## 3. Setting Up the Database + +Open terminal and login to MariaDB: + +```bash + +mysql -u root -p +``` + +Enter the root password when prompted. + +Create a new database and user: + +```sql +CREATE DATABASE student_db; +GRANT ALL PRIVILEGES ON springbackend.* TO 'username'@'localhost' IDENTIFIED BY 'your_password'; +``` +Replace username and your_password with your desired username and password. + +Exit MariaDB: + +```sql + +EXIT; +``` + +## 4. You will need Database Credentials to Connect Backend with Database +1. DB_HOST +2. DB_USER +3. DB_PASS +4. DB_PORT +5. DB_NAME ---