GithubHelp home page GithubHelp logo

be_nc_news's Introduction

nc_news

This is my API for my NC News project that I completed at Northcoders during the backend block. This is a database that stores articles, topics, comments, and users.

The project is hosted on Heroku and can be visited here where all the endpoints and example responses can be seen.


Built With

PSQL

KnexJs

Express

Node

npm

Mocha

Chai


Getting Started

To get a copy of the project up and running on your machine to test, follow these instructions.

Make sure you have Git and Node.js installed on your machine, then clone this repository

git clone https://github.com/quinnter/nc_news.git

Navigate to the correct directory and install node dependencies

npm i

Run the "setup:dbs" script

```bash
npm run setup:dbs

Run the "seed:run" script

npm run seed:run

Run a local version

npm run start

Then use an API testing tool like Insomnia to test the different API endpoints locally.

When you are done using the server use ctrl + c

To run test use the script

npm test

Available Routes and Methods

GET /api/topics
POST /api/topics

GET /api/articles
POST /api/articles


GET /api/articles/:article_id
PATCH /api/articles/:article_id
DELTE /api/articles/:article_id

GET /api/articles/:article_id/comments
POST /api/articles/:article_id/comments

PATCH /api/comments/:comment_id
DELETE /api/comments/:comment_id

GET /api/users
POST /api/users

GET /api/users/:username

be_nc_news's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.