- For simplicity the consumer/admin users will be kept in a single table
user
along withrole
(i.e. whetherconsumer
oradmin
). - There is no user registration endpoint. If needed the users can be added to the db by using a client like dbeaver.
- For testing purposes, the following users are available in the db:
Email Password Role [email protected] DWygs6wV Admin [email protected] DWygs6wV Admin [email protected] DWygs6wV Admin [email protected] DWygs6wV Admin [email protected] DWygs6wV Admin [email protected] DWygs6wV Customer [email protected] DWygs6wV Customer [email protected] DWygs6wV Customer [email protected] DWygs6wV Customer [email protected] DWygs6wV Customer
- Golang 1.18
- Install necessary tools using
make tools
- Make a copy of config.env using
cp config.env config_local.env
- Start the containers using
make dep-up
- Run migrations using
make migrate-up
- Start the application using
make run
- Mocks should be generated first using
make generate
- Run the tests using
make test
- Start the server
make run
- Run the test
make ftest