No description
Find a file
Chip Wasson 0f5e3d83bc
Some checks failed
Gitea Actions Demo / build (push) Has been cancelled
Add ability to fetch name synonyms
2025-10-20 09:04:09 -06:00
.gitea/workflows Set registry explicitly 2023-09-04 20:20:29 -06:00
.github/workflows Migrate to fly.io, add Genre type 2024-09-01 11:28:37 -06:00
src Add ability to fetch name synonyms 2025-10-20 09:04:09 -06:00
test Add parkio 2023-09-04 15:20:01 -06:00
views Add confirmation alert 2025-08-29 10:11:57 -06:00
.dockerignore Migrate to fly.io, add Genre type 2024-09-01 11:28:37 -06:00
.env.example Add contact, upgrade versions, add docs 2024-10-15 17:29:35 -06:00
.eslintrc.js Add parkio 2023-09-04 15:20:01 -06:00
.gitignore Add contact, upgrade versions, add docs 2024-10-15 17:29:35 -06:00
.prettierrc Add parkio 2023-09-04 15:20:01 -06:00
docker-compose.yaml Migrate to fly.io, add Genre type 2024-09-01 11:28:37 -06:00
Dockerfile Correct base image 2023-09-05 11:50:31 -06:00
fly.toml Connect to libera.chat 2025-10-15 13:24:44 -06:00
nest-cli.json Add parkio 2023-09-04 15:20:01 -06:00
package.json Add initial baby-names service 2025-06-17 17:17:54 -06:00
README.md Add local users 2023-12-11 18:27:33 -07:00
tsconfig.build.json Add parkio 2023-09-04 15:20:01 -06:00
tsconfig.json Add parkio 2023-09-04 15:20:01 -06:00
yarn.lock Add initial baby-names service 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