https://github.com/walkerchel/sensors-app-backend
https://github.com/walkerchel/sensors-app-backend
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/walkerchel/sensors-app-backend
- Owner: WalkerChel
- Created: 2024-12-27T19:22:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-11T23:48:07.000Z (over 1 year ago)
- Last Synced: 2025-01-12T00:25:41.716Z (over 1 year ago)
- Language: Go
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sensors App Backend Side
## Start up requirements
* Docker & Docker Compose
### How to start the service
1. Move to the project directory.
2. Create ```.env``` file and copy ```.env.example``` content into it(or use command ```mv .env.example .env```). After that simply fill in all required variables.
3. To rebuild and run application use ```docker compose up --build app``` command. To launch an already builded app, use ```docker compose up app```.
### Manual Start
For this case you need to make sure ```Go 1.22+```, ```make``` and ```migrate``` are installed locally.
1. Make yourself familiar with available makefile commands. Run ```make help``` to see commands.
2. Use ```make infrastructure-up``` to start all dependencies.
3. Use ```make migrate-up``` to apply migrations to the database.
4. Run ```go run cmd/sensors-app/main.go``` to start the application.