An open API service indexing awesome lists of open source software.

https://github.com/kamiviolet/my-nc-news

Backend project, with application of Kanban and Git branches, etc.
https://github.com/kamiviolet/my-nc-news

api-rest javascript mvc postgresql

Last synced: 9 days ago
JSON representation

Backend project, with application of Kanban and Git branches, etc.

Awesome Lists containing this project

README

        

# My Northcoders News API

## Purpose

This API mimics the building of back-end service for the purpose of accessing application data programmatically so as to provide information to the front-end architecture.

## Toolkit

This API is built in Node.JS environment, using PostgreSQL as database and node-postgres as connection, tested with Jest.

MVC architectural pattern is implemented.

## Set up environment

For security, the environment files are not included in this repository. In order to run this API, please follow the instructions as below:

1. run `npm-install`
2. create '.env.test' and '.env.development' on the root directory.
3. update the aforesaid env files with reference of '.env.example'.
4. the database_name can be found inside ./db/setup.sql.

## List of available endpoints for the API

To get the list of available endpoints, please use GET to /api. The response will ccontain the following information:

1. description of the endpoint
2. acceptable query options
3. format of request body for POST/PUT/PATCH
4. examples of responses