To set up the project on a new device, follow these steps:
-
Clone the Repository
Run the following command to clone the repo:git clone https://github.com/sravankumarbodakonda/RestroRealm.git
-
Create a Database
- Open MySQL Workbench or your preferred MySQL client.
- Create a new database named
restrorealm.CREATE DATABASE restrorealm;
-
Update Database Credentials
- Navigate to the
src/main/resources/application.propertiesfile in the cloned project. - Update the following properties with your MySQL credentials:
spring.datasource.url = jdbc:mysql://localhost:3306/restrorealm spring.datasource.username = <your-mysql-username> spring.datasource.password = <your-mysql-password>
- Note: Only update the above three properties. Do not modify any other configurations.
- Navigate to the
-
Run the Backend Application
- Open the project in your favorite IDE (e.g., IntelliJ IDEA, Eclipse).
- Run the Spring Boot application located in the
src/main/javadirectory.
-
Set Up the Frontend Application
- Open the
src/restrorealmfolder in VS Code or your preferred code editor. - Install the required dependencies by running:
npm install
- Start the frontend development server:
ng serve
- The application should now be accessible at
http://localhost:4200.
- Open the
-
Add Initial Data to the Database
- Use MySQL Workbench or a similar tool to add the provided initial data to the
restrorealmdatabase. - Ensure the data matches the schema expected by the application.
- Use MySQL Workbench or a similar tool to add the provided initial data to the
- Ensure MySQL is installed and running on your device.
- Replace
<your-mysql-username>and<your-mysql-password>with your actual MySQL credentials. - If you encounter any issues, refer to the project's documentation or reach out to the maintainers.
Happy coding! 🚀
INSERT INTO role (name, description, deleted, created_at, updated_at) VALUES("SuperAdmin", "Super Admin for managing Overall Site", False, now(), now());INSERT INTO role (name, description, deleted, created_at, updated_at) VALUES("User", "User is refered to as customer", False, now(), now());