Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chvishalparmar/online-food-ordering-system
The objective of this Project is to design and develop an Online Food Ordering System using Java and Spring Boot. The application should allow users to view menus, place orders.It uses Docker for containerization and Docker Compose to manage multi-container setups including a MySQL database.
https://github.com/chvishalparmar/online-food-ordering-system
docker docker-compose exception-handling java jpa jwt mysql rest-api spring spring-security-jwt springboot
Last synced: 1 day ago
JSON representation
The objective of this Project is to design and develop an Online Food Ordering System using Java and Spring Boot. The application should allow users to view menus, place orders.It uses Docker for containerization and Docker Compose to manage multi-container setups including a MySQL database.
- Host: GitHub
- URL: https://github.com/chvishalparmar/online-food-ordering-system
- Owner: chvishalparmar
- Created: 2024-07-30T07:15:31.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-13T07:09:00.000Z (2 months ago)
- Last Synced: 2024-09-14T05:47:16.891Z (2 months ago)
- Topics: docker, docker-compose, exception-handling, java, jpa, jwt, mysql, rest-api, spring, spring-security-jwt, springboot
- Language: Java
- Homepage:
- Size: 101 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Online-Food-Ordering-System
The objective of this Project is to design and develop an Online Food Ordering System using Java and Spring Boot. The application should allow users to view menus, place orders.It uses Docker for containerization and Docker Compose to manage multi-container setups including a MySQL database.
## Prerequisites
* Docker: Install Docker
* Docker Compose: Install Docker Compose
## Project Structure
* Dockerfile: Contains instructions to build the Docker image for the Spring Boot application.
* docker-compose.yml: Defines and runs multi-container Docker applications, including the Spring Boot app and a MySQL
database.## Configuration
* Profiles: The ***docker-compose.yml*** file includes an environment variable ***SPRING_PROFILE=docker*** to activate the docker profile in your Spring Boot application. You can modify this to use a different profile if needed.
* Database Connection: Ensure your Spring Boot application is configured to connect to the MySQL database using the correct URL, username, and password specified in ***docker-compose.yml***.
* Spring Boot Environment Variables: Configuration for the Spring Boot application is defined in the docker-compose.yml file under the app service. Modify the environment variables as needed.
* MySQL Configuration: Database credentials and settings are defined in the docker-compose.yml file under the db service. Adjust as necessary.
* Customization: You can customize the Docker Compose file and Spring Boot application to suit your specific requirements.
## Build and Run the Application### Clone the Repository
```
git clone https://github.com/chvishalparmar/Online-Food-Ordering-System.git
cd Online-Food-Ordering-System
```### Build the Docker Images
Run the following command to build the Docker images for the application and the MySQL database
```
docker-compose build
```
### Start the Application
Start the application and database containers using Docker Compose
```
docker-compose up
```
This will start two containers:
ordersystem: The Spring Boot application.
database: The MySQL database.You can check the status of the containers with:
```
docker-compose ps
```
### Access the Application
Spring Boot Application: Access the application at (http://localhost:9090)### Stop the Application
To stop the containers, run:
```
docker-compose down
```
This will stop and remove the containers, but it will not remove the volumes.***Happy Coding***