https://github.com/raboro/meal-tracker-web-app
Web Application to track your meals
https://github.com/raboro/meal-tracker-web-app
angualr css docker docker-compose html java make spring-boot typescript
Last synced: 3 months ago
JSON representation
Web Application to track your meals
- Host: GitHub
- URL: https://github.com/raboro/meal-tracker-web-app
- Owner: Raboro
- License: mit
- Created: 2024-01-28T19:06:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-30T22:21:06.000Z (over 1 year ago)
- Last Synced: 2025-02-02T17:54:35.832Z (4 months ago)
- Topics: angualr, css, docker, docker-compose, html, java, make, spring-boot, typescript
- Language: Java
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Meal-Tracker-Web-App
## Installation
Clone this repository and install all dependencies for the backend and frontend. Backend is with Maven (`mvn clean install`) and Frontend with NPM (`npm install`).You also need to have docker installed.
## Start the Application
To start the application you can just type `$ make up`. This starts the docker compose, which contains of three container. One for the PostgreSQL Database, one for the Java Sprint Boot Backend and one for the Angular Frontend.
After the startup you can go to `http://localhost:4200/` and use the application.### Start not via Make
If you wanna start the application without make, you can do this by use `$ docker-compose up --build` or if you just wanna run the frontend without backend and database you can do `$ cd meal-tracker-web-app-frontend/` and then `$ ng serve`.## API
The API uses the PORT 8081:
- **GET** http://localhost:8081/meal - get all meals
- **POST** http://localhost:8081/meal - add a meal
- **DELETE** http://localhost:8081/meal/{id} - delete meal by id## Database
The database is locally, but all your data is saved to the `db/` directory and restart the database can use this data already.