deno_crud_jwt
deno_crud_jwt copied to clipboard
🦕 basic jwt implementation with CRUD operations using deno + postgres
Deno crud Api + jwt
A simple boilerplate for Deno CRUD Api, with jwt authentication.
Features
- [x] simple CRUD operations.
- [x] Oak framework.
- [x] deno-postgres as postgres deriver
- [x] jwt and deno-bcrypt for authentication.
- [x] handle all errors
- [x] using yup for body data validation using pika.dev
- [ ] tests
- [x] deno-nessie for database migrations.
- [ ] Docker
- [ ] github actions (CI)
Prerequisites
- Deno v1.
- Postgres
Getting Started
git clone https://github.com/22mahmoud/deno_crud_jwt.git
cd deno_crud_jwt
cp .env.example .env
before run the server fill .env values.
# download & cache all deps
deno cache ./deps.ts
# migrate database after fill your env file
deno run --allow-net --allow-read --allow-env https://deno.land/x/nessie/cli.ts migrate
# run the server
deno run --allow-net --allow-env --allow-read --unstable src/index.ts