LitKeep(a bill record app) backend service source code.
Using golang, fiber and gorm to make a good service.
Suppose you have a mysql or mariadb database.
Run sql files in ./sql
to initial the database.
The order of execution does not matter, there are no foreign keys here
the log util and redis is not used at all now!
dev.yaml
for your development and prod.yaml
for deployment.
- If you like, you could use
air
to watch files' changement through development, - orjust rerun after
./script/restartcmd.sh
. - Or if you are using
pm2
from npm, run./script/restart.sh
which will rebuild and rerun the service through pm2. - Or run
./script/build.sh
first and then runpm2 start ./script/pm2.config.js
.
Just like during development,
- if you are using
pm2
from npm, run./script/restart.sh
which will rebuild and rerun the service through pm2. - Or run
./script/build.sh
first and then runpm2 start ./script/pm2.config.js
. - Any other way, it is just a executable file after building.