Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asilvafx/sqlite-crud
Simple Node.js Database CRUD, using SQLite3
https://github.com/asilvafx/sqlite-crud
crud database javascript nodejs sqlite
Last synced: 9 days ago
JSON representation
Simple Node.js Database CRUD, using SQLite3
- Host: GitHub
- URL: https://github.com/asilvafx/sqlite-crud
- Owner: asilvafx
- License: mit
- Created: 2024-12-26T09:14:11.000Z (11 days ago)
- Default Branch: main
- Last Pushed: 2024-12-26T10:10:34.000Z (11 days ago)
- Last Synced: 2024-12-26T10:20:05.536Z (11 days ago)
- Topics: crud, database, javascript, nodejs, sqlite
- Language: JavaScript
- Homepage:
- Size: 6.07 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# SQLite CRUD
Simple Node.js Database CRUD application using SQLite3.
## Table of Contents
- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [API Endpoints](#api-endpoints)
- [Contributing](#contributing)
- [License](#license)## Introduction
This project is a simple CRUD (Create, Read, Update, Delete) application built with Node.js and SQLite3. It provides a basic REST API for interacting with an SQLite database.
## Features
- Middleware for JSON parsing using Express.
- CRUD operations on any specified table.
- Easy to start and deploy.## Installation
To install and set up the project, follow these steps:
1. Clone the repository:
```
git clone https://github.com/asilvafx/sqlite-crud.git
cd sqlite-crud
```2. Install the dependencies:
```
npm install
```## Usage
To start the server, run:
```
npm start
```The server will start on the port specified in the .env file (default is 3000).
## API Endpoints
1. Get all items from a specified table
```
GET /:tableName
```2. Create a new item in a specified table
```
POST /:tableName
```4. Update an item in a specified table
```
PUT /:tableName/:id
```5. Delete an item from a specified table
```
DELETE /:tableName/:id
```## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.## License
This project is licensed under the MIT License. See the LICENSE file for details.