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

https://github.com/boobeh123/backend-phonebook

A back-end Node application. REQUIRES POSTMAN! Live on Render
https://github.com/boobeh123/backend-phonebook

express-js javascript node-js rest-api

Last synced: 4 months ago
JSON representation

A back-end Node application. REQUIRES POSTMAN! Live on Render

Awesome Lists containing this project

README

        

## Description
A back-end Node application that uses the Express framework to return a hardcoded list of phonebook entries. Its API accepts GET, DELETE, & POST requests.

Edit: (New deployment)

The project is deployed here: https://backend-phonebook-2fqs.onrender.com/

(Previous deployment, heroku no longer free)

~~The project is deployed here: https://mysterious-island-88506.herokuapp.com/~~

## Demo
![demo](pbdemo.gif)

## Features
* POST requests are not allowed to succeed, if:
* Name property is missing.
* Number property is missing.
* Name property already exists (applies only to what is already stored in API)
* Uses `morgan` module to log all requests sent to the server.

## Optimizations
* I would like to add error handling when a POST request submits a duplicate number property.

## Technologies
HTML5CSS3JavaScriptNodeJS
Express.jsGit

## Do you want to build this project?
https://fullstackopen.com/en/part3/node_js_and_express#exercises-3-1-3-6
&
https://fullstackopen.com/en/part3/node_js_and_express#exercises-3-7-3-8