https://github.com/nutancoder/nodejs-sqlite-api-jwt
A ready to use REST API using nodejs and sqlite with swagger for learning frontend
https://github.com/nutancoder/nodejs-sqlite-api-jwt
jwt-authentication rest-api sqlite swagger
Last synced: about 1 month ago
JSON representation
A ready to use REST API using nodejs and sqlite with swagger for learning frontend
- Host: GitHub
- URL: https://github.com/nutancoder/nodejs-sqlite-api-jwt
- Owner: NutanCoder
- Created: 2025-06-21T13:11:26.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-21T15:33:59.000Z (about 1 year ago)
- Last Synced: 2025-07-01T13:09:39.765Z (12 months ago)
- Topics: jwt-authentication, rest-api, sqlite, swagger
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js SQLite In-Memory Database Example
This project sets up an **in-memory SQLite database** using Node.js and the `sqlite3` package. It defines two tables:
- `users`: Stores user data with unique emails.
- `books`: Stores books with a foreign key referencing a user.
## Features
- Uses SQLite in-memory mode (data resets on every restart).
- Initializes `users` and `books` tables on server start.
- Demonstrates usage of foreign keys in SQLite.
## Prerequisites
- Node.js (v14 or above recommended)
- npm
## Installation
```bash
git clone https://github.com/NutanCoder/nodejs-sqlite-api-jwt.git
cd nodejs-sqlite-api-jwt
npm install
npm run start
```