- Run docker or install if you do not have one
- Clone the repository
- Go to server folder with command
cd server
- Add .env
SECRET_KEY=anything
with commandtouch .env
- Create postgres container with
make postgresinit
- Create database inside container
make createdb
- Migrate database inside container
make dbup
- Run server with
go run main.go
- Clone the repository
- Go to client folder with command
cd client
- Add .env
VITE_PASSWORD=anything
with commandtouch .env
- Start the client with command
npm run dev
- Run docker or install if you do not have one
- Clone the repository
- Go to server folder with command
cd server
- Add .env
SECRET_KEY=anything
with commandtouch .env
. If you have done this previously, you may skip this one - Create postgres container with
make postgresinit
or if you have done this previously, you may skip this one - Create test database inside container
make createdbtest
- Migrate test database inside container
make dbtestup
- Test with test runner or
go test ./test/ -v
Replace anything in .env
with your own secret as you like