Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moliva/splitwizz-service
Splitwizz backend services 🪄
https://github.com/moliva/splitwizz-service
expenses
Last synced: about 9 hours ago
JSON representation
Splitwizz backend services 🪄
- Host: GitHub
- URL: https://github.com/moliva/splitwizz-service
- Owner: moliva
- Created: 2024-03-09T16:50:26.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-04T14:04:20.000Z (5 months ago)
- Last Synced: 2024-06-04T15:54:31.534Z (5 months ago)
- Topics: expenses
- Language: Rust
- Homepage:
- Size: 257 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Splitwizz service
## Development setup
Make sure to have a local Postgres DB called `splitwizz`, run the migration scripts:
```bash
cargo install sqlx-cli
sqlx migrate run
```And run the development environment with the following command:
```bash
cargo watch -x run
```## Production build
Before making the image build, since `sqlx` will need to run offline during the build phase in the Docker environment, make sure to build the offline data file with:
```bash
cargo sqlx prepare
```After that just go ahead and build the production image, make sure to bump both versions:
```bash
./build-docker.sh
```And the migrations image as well:
```bash
./build-docker-migrations.sh
```After checking that everything is good you can run the same commands now with the publish flag on `-p`