Add local users
This commit is contained in:
15
README.md
15
README.md
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user