Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/neuralcortex/rest_api_jwt_nodejs

REST API unsing JWT, SQLite and Node.js
https://github.com/neuralcortex/rest_api_jwt_nodejs

javascript node-js nodejs rest rest-api restful-api sql sqlite sqlite3

Last synced: 24 days ago
JSON representation

REST API unsing JWT, SQLite and Node.js

Awesome Lists containing this project

README

        

# REST API using JWT and SQLite

## How the API works

This project contains a simple REST API using the CRUD pattern, secured by JWT(JSON Web Token), running under Node.js.
The data of this webservice is stored in a SQLite Database.
I decided to comment the source files rather then describe the methods in the readme.

## Steps to get things work

To use the app, you need to execute following steps:
1. Install Node.js
2. Go to the project's main directory.
3. Generate public.key and private.key via [Online RSA Key Generator](https://travistidwell.com/jsencrypt/demo/)
4. Type `npm install` - Wait for Completion
5. Type `nodemon server` - To start the REST API server
6. Type `npm start` - To start the demo (client)

## Technology used

The following tools were used:

- [Visual Studio Code](https://code.visualstudio.com/)
- [Postman](https://www.postman.com/)
- [SQLiteStudio](https://sqlitestudio.pl/)
- [Node.js](https://nodejs.org)
- [Google Chrome](https://www.google.com/chrome/)