package
0.0.0-20241017064637-9da20245cefc
Repository: https://github.com/rshelekhov/sso.git
Documentation: pkg.go.dev
# README
Before testing
- Add config file to
./config/.env
(see an example in the./config/.env.example
).- By default, this app use port
44044
. If you set another port please updateSERVER_PORT
in theMakefile
.
- By default, this app use port
- Set path to config:
export CONFIG_PATH=./config/.env
- Set URL for PostgresQL:
export POSTGRESQL_URL='postgres://login:password@host:port/db_name?sslmode=disable'
- If you use S3 for key storage you need to copy
app_test-app-id_private.pem
from thecerts
folder and upload to your S3 bucket. - Run tests —
make test-all-app
ormake test-api
. You'll run database migrations, insert test-app into database, run the server and then run tests.
For more details you can check other commands in the Makefile
.