Rayologist / Express-RESTful-API-with-PostgreSQL

Building a simple RESTful api using Express.js and interacting with PostgreSQL doing CRUD operations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Express-RESTful-api-with-PostgreSQL

Building a simple RESTful API using Express.js and interacting with PostgreSQL doing CRUD operations.

Usage

  1. Clone the repo
git clone https://github.com/Rayologist/Express-RESTful-api-with-PostgreSQL.git
  1. Install required packages
cd Express-RESTful-api-with-PostgreSQL && npm install
  1. Create database using psql
createdb todo_database
  1. Enter database
psql todo_database
  1. Create table
CREATE TABLE todo(
    todo_id SERIAL PRIMARY KEY,
    description VARCHAR(255)
);
  1. Start the project
npm start
  1. Use Postman to interact with the API

Resource

Build restful API with PostgreSQL and Express

About

Building a simple RESTful api using Express.js and interacting with PostgreSQL doing CRUD operations


Languages

Language:JavaScript 100.0%