API Server Node JS
Open-source Node JS API Server enhanced with JWT Authentication and SQLite storage.
Free API Server coded on top of Express / Node JS with SQLite persistence and JWT authentication via Passport library - passport-jwt strategy.
Version: v1.0.1, release date
2022-06-02
API Definition - the unified API structure implemented by this server
Node JS API Server - source code
Full-stack samples compatible with this product:
React Berry Dashboard - open-source sample
React Datta Dashboard - open-source sample
API Methods - for full description please access API Unified Definition
USERS API:
/api/users/register: create a new user/api/users/login: authenticate an existing user/api/users/logout: delete the associated JWT token/api/users/checkSession: check an existing JWT Token for validity/api/users/edit- edit the information associated with a registered user

β¨ Tests Matrix
v17.0.0
v8.11.0
v1.22.18
βοΈ
v16.15.1
v8.11.0
v1.22.18
βοΈ
v16.13.0
v8.1.0
v1.22.5
βοΈ
β¨ How to use the code
π Step 1 - Clone the sources
π Step 2 - Install dependencies via NPM or Yarn
π Step 3 - Run the
SQLitemigration
π Step 4 - Start the API server (development mode)
π Step 5 - Production Build (files generated in
builddirectory)
π Step 6 - Start the API server (production mode)
The API server will start using the PORT specified in .env file (default 5000)\
β¨ Codebase Structure
β¨ SQLite Path
The SQLite Path is set in .env, as SQLITE_PATH
β¨ Database migration
π
Generatemigration:
π
Runmigration:
β¨ Compatible Fullstack Products
The product can be used as a standalone server but also as an authentication server for React, Vue products. Such a product already configured with Django API Server is React Datta Able, an open-source React Dashboard.
React Datta Able - product page
βReact Datta Able - source code

Last updated
Was this helpful?