Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zaiste/secure-rest-api-nodejs

Creating Secure REST APIs in Node.js without JWTs
https://github.com/zaiste/secure-rest-api-nodejs

cookie-authentication huncwot-framework jwt nodejs rest-api

Last synced: 2 months ago
JSON representation

Creating Secure REST APIs in Node.js without JWTs

Awesome Lists containing this project

README

        

# secure-rest-api-nodejs

The code for [Creating Secure REST APIs in Node.js without JWTs](https://zaiste.net/creating-secure-rest-api-nodejs-without-jwt/).

## Setup

It doesn't work with Node.js 12 yet.

```
npm install
```

Start a PostgreSQL instance on port `5432`. Create a database named `secure_rest_api_nodejs`, adjust the connection settings in `config/default.yml`.

Start the application:

```
npm start
```

Play with the server at `localhost:5544`.