Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alan2207/express-server-jwt
A simple express server that handles JWT authentication
https://github.com/alan2207/express-server-jwt
authentication express jwt jwt-authentication node prisma rest-api server
Last synced: about 2 months ago
JSON representation
A simple express server that handles JWT authentication
- Host: GitHub
- URL: https://github.com/alan2207/express-server-jwt
- Owner: alan2207
- Created: 2018-02-13T18:59:51.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T20:22:08.000Z (about 2 years ago)
- Last Synced: 2023-03-02T22:42:35.528Z (almost 2 years ago)
- Topics: authentication, express, jwt, jwt-authentication, node, prisma, rest-api, server
- Language: JavaScript
- Homepage:
- Size: 292 KB
- Stars: 36
- Watchers: 1
- Forks: 11
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Express Server JWT
A simple server with JWT authentication with the ability to create new users, and to authenticate the existing ones.
## Stack
- express
- prisma
- passport
- jwt## Endpoints:
- /signin - POST (email, password)
- /signup - POST (email, password)
- /user - GET (protected)## Get Started:
Download the repo and install all dependencies:
```
git clone https://github.com/alan2207/express-server-jwt
cd express-server-jwt
npm install
```Configure server environment variables:
```
cp .env.example .env
```Generate Prisma Client
```
npx prisma generate
```Run Prisma migration
```
npx prisma migrate
```Run the server:
```
npm start
```