https://github.com/inseefrlab/todo-rest-api
Todo app rest API with OIDC and OpenGraph
https://github.com/inseefrlab/todo-rest-api
Last synced: 3 months ago
JSON representation
Todo app rest API with OIDC and OpenGraph
- Host: GitHub
- URL: https://github.com/inseefrlab/todo-rest-api
- Owner: InseeFrLab
- Created: 2024-05-21T12:09:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-24T01:53:23.000Z (about 1 year ago)
- Last Synced: 2025-02-24T02:26:15.085Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://insee-todo-api.up.railway.app/doc
- Size: 86.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TODO Rest API
Very basic todo app REST API with oidc and Open API.
It's published as a docker image: [inseefrlab/todo-rest-api](https://hub.docker.com/r/inseefrlab/todo-rest-api).
It's purpose is to enable you to have an API to test your OIDC client integration.
It was originally made for: https://github.com/InseeFrLab/vite-insee-starter
The easier way to deploy it is to use [Railway](https://railway.app/).
You need to set the following environment variables (example):
```.env
OIDC_ISSUER_URI=https://auth.code.gouv.fr/auth/realms/playground
OIDC_AUDIENCE=account
PORT=8080
```
This is a demo with our Keycloak instance, adapt for your own OIDC provider.
# Development
```bash
git clone https://github.com/InseeFrLab/todo-rest-api
cd todo-rest-api
cp .env.local.sample .env.local
yarn
yarn dev
```
## Stack
- TypeScript
- Node
- Hono
- Zod
- Docker