1
0
Fork
You've already forked getit-be
0
This is the back end repo for get:it. See galambborong/getit for the front end repo, or just enjoy the site :)
  • JavaScript 100%
Find a file
2021年05月26日 16:34:21 +01:00
__tests__ Correct spelling of createRefObj util function 2021年04月14日 09:25:58 +01:00
controllers total_count property reflects filters 2021年04月15日 08:27:09 +01:00
db Refactor util functions 2021年04月14日 17:48:32 +01:00
errors POST on /api/articles with 400 errors 2021年03月12日 13:03:39 +00:00
models total_count property reflects filters 2021年04月15日 08:27:09 +01:00
routes Add GET method for /api/users endpoint 2021年04月07日 22:03:42 +01:00
.gitignore Update .gitignore with webstorm dotfile 2021年04月24日 10:54:34 +01:00
app.js Enable CORS requests 2021年04月07日 08:54:39 +01:00
endpoints.json Add p and limit query details to endpoints.json 2021年04月12日 08:25:06 +01:00
listen.js Updates for Heroku deploy 2021年03月15日 14:45:07 +00:00
package-lock.json Merging divergence between heroku and github 2021年04月07日 08:56:10 +01:00
package.json Merging divergence between heroku and github 2021年04月07日 08:56:10 +01:00
README.md Update title on README 2021年05月26日 16:34:21 +01:00

get:it

Overview

This is a Reddit-like REST API created during the back end module on the Northcoders developer bootcamp. Access it live here.

You can peruse the front end codebase here, and visit the website itself at getit.peterkeenan.co.uk

Endpoints currently supported:

GET /api
GET /api/topics
GET /api/users
GET /api/users/:username
GET /api/articles/:article_id
PATCH /api/articles/:article_id
DELETE /api/articles/:article_id
GET /api/articles/:article_id/comments
POST /api/articles/:article_id/comments
GET /api/articles
POST /api/articles
PATCH /api/comments/:comment_id
DELETE /api/comments/:comment_id

Endpoints coming shortly:

POST /api/topics
POST /api/users

See endpoints.json or the main API landing page for a more detailed breakdown on available methods, including sample responses, submissions and queries.

Technology stack

This API uses the

  • Express server framework in
  • NodeJS, coupled with a
  • PostgreSQL database
  • KnexJS is used to interface between Node and PSQL in JavaScript

Approach

The code handling requests and responses follows the model-view-controller (MVC) design pattern. Using Jest and Supertest, all development has been test-driven (TDD).

Acknowledgements

The first phase of this project up to commit c6c1cbf was advanced through pair programming with V98Ganz.

All commits prior to commit 331d4e9 are by Northcoders tutors, establishing the starting scaffolding of the repository (sample data, for example).