GithubHelp home page GithubHelp logo

22mahmoud / deno_crud_jwt Goto Github PK

View Code? Open in Web Editor NEW
97.0 3.0 15.0 20 KB

๐Ÿฆ• basic jwt implementation with CRUD operations using deno + postgres

TypeScript 99.59% Shell 0.41%
deno postgresql deno-postgres oak typescript jwt

deno_crud_jwt's Introduction

Deno crud Api + jwt

A simple boilerplate for Deno CRUD Api, with jwt authentication.

Features

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

deno_crud_jwt's People

Contributors

22mahmoud avatar vicky-gonsalves avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

deno_crud_jwt's Issues

Suggestion: Use middlewares?

Hi! I made some middlewares for Oak, which you might enjoy (seeing you are using djwt).

One of the middlewares is for JWT validation (though I see you already have your own implementation of this). If you would like to use this middleware, I would love some feedback ๐Ÿ‘

I have two other middlewares as well, but I am not sure if you might need them. One is for request-body and parameter validation (very much still in development, but works), and the other one is for logging and error handling.

Hope this is useful for you ๐Ÿš€

Use new version on Nessie

Hi! Two days ago I upgraded Nessie to v0.5.0. This version brought with it a lot of breaking changes which you might want to take a look at ๐Ÿ˜„

Luckily it is quite easy to update to the new version. In the migrations, you will only have to change from schema.create to return new Schema().create (Schema is now exported from https://deno.land/x/nessie/qb.ts), and regarding the config file, you will have to import the client from import {ClientPostgreSQL} from https://deno.land/x/nessie/mod.ts.

Hope you like the new version!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.