/crud

Primary LanguageJavaScript

CRUD Project using SQL API

This is the README file for the CRUD REST API using SQL database. This project aims to demonstrate basic CRUD (Create, Read, Update, Delete) operations using a SQL database.

Prerequisites

Before running this project, make sure you have the following prerequisites installed:

  • SQL database (SQLite is used here)
  • Node and NPM installed (Node.js with Express)

Installation

  1. Clone the repository:
git clone https://github.com/pjparties/crud.git
  1. Install the required dependencies:
cd crud-project
npm i
  1. Configure the database connection:

Open the pacakage.json file and update the database connection details according to your setup.

npx knex migrate:latest

Usage

To run the CRUD project, execute the following command:

npm run dev