A simple side project for personal accounting.
It's a monorepo that uses:
Svelte
as front-endExpress
as back-endTurborepo
as build system
- Node.js v18
- Docker
- PNPM as package manager
Default package manager is PNPM
- Create a .env file:
# POSTGRES_PASSWORD is used by postgres.yml, the docker-compose file
POSTGRES_PASSWORD=example
# DATABASE_URL is used by Prisma
DATABASE_URL=postgresql://postgres:example@localhost:5432/postgres
- Run
pnpm dev:docker
to pull the postgres image and start the container. - Run
pnpm dev:dbinit
to migrate & seed dev databases
# Start the monorepo in the workspace
pnpm dev
We use Github Flow.
- Anything in the
main
branch is deployable - Create descriptive branches off of master
- front-end:
fe-[what_you_are_working_on]
- back-end:
be-[what_you_are_working_on]
- front-end:
- Open a pull request at any time
- Merge only after pull request review
git fetch
from your feature branch (make sure the feature branch you are working on is update to date)git rebase origin/main
- if any conflict should arise, resolve them one by one
- use
git rebase --continue
once all conflicts have been dealt with git push origin [your_branch_name]