Cumulative loyalty system.
Dependencies:
- Go
1.23 - Docker for PostgreSQL
- Linux or macOS platform
To build a gophermart, run in the terminal:
make build_gophermart # in the root directory of the projectTo startup the gophermart, run in the terminal:
./gophermart # in the root directory of the projectTo build a accrual, run in the terminal:
make accrual # in the root directory of the projectTo startup the accrual, run in the terminal:
./accrual # in the root directory of the projectJWT_SECRET_KEY– JWT secret key.JWT_LIFETIME– JWT lifetime. Default1hDATABASE_URI|-d– PostgresSQL DSNRUN_ADDRESS|-a– HTTP server address. Defaultlocalhost:8080LOG_MODE– Logging mode. Defaultdev. Valuesinfo,dev,warn,errorCORS_ORIGINS– List of CORS-origins. Defaulthttp://localhost:3000WORKERS_COUNT– Count of workers. Default5SHUTDOWN_TIMEOUT– Shutdown timeout. Default5s
To be able to receive updates for autotests and other parts of the template, run the command:
git remote add -m master template https://github.com/yandex-praktikum/go-musthave-group-diploma-tpl.gitTo update the autotest code, run the command:
git fetch template && git checkout template/master .githubThen add the changes to your repository.