Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/neuralcortex/rest_api_jwt_nodejs
- Owner: NeuralCortex
- License: lgpl-2.1
- Created: 2023-11-23T14:11:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-21T11:23:04.000Z (11 months ago)
- Last Synced: 2024-01-21T12:29:26.232Z (11 months ago)
- Topics: javascript, node-js, nodejs, rest, rest-api, restful-api, sql, sqlite, sqlite3
- Language: JavaScript
- Homepage:
- Size: 608 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)