Files
kycnotme/README.md

62 lines
1.3 KiB
Markdown
Raw Normal View History

2025-05-19 10:23:36 +00:00
# KYCnot.me
[KYCnot.me](https://kycnot.me)
## Development
### Installations
Install the following tools:
- [nvm](https://github.com/nvm-sh/nvm) (or [node](https://nodejs.org/en/download/))
- [docker](https://docs.docker.com/get-docker/)
- [just](https://just.systems)
### Initialization
Run this the first time you setup the project:
```zsh
# you can alternatively use `just dev-database`
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --wait database redis
cd web
nvm install
npm i
cp -n .env.example .env
2025-05-26 14:45:22 +00:00
npm run db-reset
2025-05-19 10:23:36 +00:00
```
Now open the [.env](web/.env) file and fill in the missing values.
2025-05-23 18:23:14 +00:00
> Default users are created with tokens: `admin`, `moderator`, `verified`, `normal` (configurable via env vars)
2025-05-19 10:23:36 +00:00
### Running the project
In separate terminals, run the following commands:
- Database
```zsh
# you can alternatively use `just dev-database`
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --wait database redis
```
- Website <http://localhost:4321>
```zsh
cd web
nvm use
npm run dev
```
- Database Admin (Optional) <http://localhost:5555>
```zsh
cd web
nvm use
npm run db-admin
```
> [!TIP]
> VS Code will run the project in development mode automatically when you open the project.