sso-core/README.md

20 lines
594 B
Markdown
Raw Normal View History

2024-05-20 20:25:46 +03:00
# sso-core
2024-05-16 17:49:11 +03:00
2024-05-20 20:25:46 +03:00
This is a SvelteKit-powered authentication service.
2024-05-16 17:49:11 +03:00
2024-06-11 19:49:57 +03:00
## Requirements
1. A MySQL or MariaDB database.
2. Node.js 20+ or Docker.
2024-05-20 20:25:46 +03:00
## Set up
2024-05-16 17:49:11 +03:00
2024-06-11 19:49:57 +03:00
1. Clone the repository.
2. Install dependenices - `npm install`.
3. Configure the environment - `cp .env.example .env`.
2024-12-21 21:00:48 +02:00
4. Generate secrets:
2024-05-20 20:25:46 +03:00
1. Session secret - `node -e 'console.log(require("crypto").randomBytes(16).toString("hex"))'`.
2. Challenge secret - `node -e 'console.log(require("crypto").randomBytes(32).toString("hex"))'`.
2024-06-11 19:49:57 +03:00
5. Build the application - `npm run build`.
6. Run the application - `node -r dotenv/config build`.