Prerequisities • Env file • Installation • Use-case • TODO
- Node>=14
- Postgres database (there is possibility to deploy capyAuth using docker-compose)
ACCESS_TOKEN_SECRET=secr3t
ACCESS_TOKEN_EXPIRATION=3600 - see https://www.npmjs.com/package/jsonwebtoken
REFRESH_TOKEN_SECRET=secr4t
REFRESH_TOKEN_EXPIRATION=1d - see https://www.npmjs.com/package/jsonwebtoken
PORT=5467
DB_HOST=127.0.0.1
DB_USER=user
DB_PASSWORD=supersecretpassword
DB_NAME=postgres
DB_DIALECT=postgres (sequelize dialect)
- Simple installation:
npm i
oryarn
npm start
oryarn start
- Docker installation:
docker-compose --env-file path/to/.env up
- for deploying whole app as one, with postgres DB
docker build --tag <name> .
docker run --env-file path/to/.env --network="host" <name>
- for standalone deployment
- tests
- Github actions for pushing newest main branch to dockerhub
- reseting password