Add local users

This commit is contained in:
2023-12-11 18:27:33 -07:00
parent d00fe6fdb7
commit 6b2fd89ab2
8 changed files with 61 additions and 18 deletions

View File

@@ -16,13 +16,22 @@ cp .env.example .env
yarn
# Start local services
docker compose up -d
# Copy default data into local minio
cp -r default/* data/minio/devbucket
# Start Application
yarn start:dev
# Log in with development user (admin) and dev password (password)
curl --request POST \
--url http://localhost:3000/auth/login \
--header 'Content-Type: application/json' \
--data '{
"username":"admin",
"password":"password"
}'
```
Visit http://localhost:3000/api
The Login command will return a JSON object with `access_token`. You can then
head over to http://localhost:3000/api, click the "Authorize" button, and enter
the `access_token`. This will then be applied to all of the endpoints that
require auth on the API page.
## Configuration