Chip Wasson aba378ab44
All checks were successful
Gitea Actions Demo / build (push) Successful in 2m9s
Add additional properties
2025-06-17 18:45:31 -06:00
2023-09-04 20:20:29 -06:00
2025-06-17 18:45:31 -06:00
2023-09-04 15:20:01 -06:00
2025-06-17 18:45:31 -06:00
2023-09-04 15:20:01 -06:00
2023-09-04 15:20:01 -06:00
2023-09-05 11:50:31 -06:00
2024-11-01 16:34:32 -06:00
2023-09-04 15:20:01 -06:00
2025-06-17 17:17:54 -06:00
2023-12-11 18:27:33 -07:00
2023-09-04 15:20:01 -06:00
2023-09-04 15:20:01 -06:00
2025-06-17 17:17:54 -06:00

us.dev Generalized API

AKA the monolith

Quickstart

Dependencies:

  • Docker
  • Node 18
# Copy example .env
cp .env.example .env
# Install Dependencies
yarn
# Start local services
docker compose up -d
# 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"
}'

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

Supply the following environment variables:

Env Name Description
JWT_SECRET A big string to use as the JWT token secret
ADMIN_PASS The password for the admin user
Description
No description provided
Readme 340 KiB
Languages
TypeScript 91.4%
Handlebars 8.4%
Dockerfile 0.2%