sso-core/README.md

20 lines
594 B
Markdown
Raw Normal View History

2024-05-20 17:25:46 +00:00
# sso-core
2024-05-16 14:49:11 +00:00
2024-05-20 17:25:46 +00:00
This is a SvelteKit-powered authentication service.
2024-05-16 14:49:11 +00:00
2024-06-11 16:49:57 +00:00
## Requirements
1. A MySQL or MariaDB database.
2. Node.js 20+ or Docker.
2024-05-20 17:25:46 +00:00
## Set up
2024-05-16 14:49:11 +00:00
2024-06-11 16:49:57 +00:00
1. Clone the repository.
2. Install dependenices - `npm install`.
3. Configure the environment - `cp .env.example .env`.
2024-12-21 19:00:48 +00:00
4. Generate secrets:
2024-05-20 17:25:46 +00: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 16:49:57 +00:00
5. Build the application - `npm run build`.
6. Run the application - `node -r dotenv/config build`.