GithubHelp home page GithubHelp logo

asilo5 / whats-new-times Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 39.97 MB

Whats New Times is an application where a user can filter through which news article they would like to read

Home Page: https://asilo5.github.io/whats-new-times/

HTML 1.82% CSS 5.28% JavaScript 92.90%
news-articles reactjs enzyme-testing jest-tests jest-snapshots css

whats-new-times's Introduction

BYOB

This API was built for developers that are interested in fetching vegan restaurants in different cities around the world. The restaurants include the name, type of restaurant, and address.

Created by:

Amanda Consuelo Sierra

Setup on your computer

Clone the repo to your terminal : $ git clone https://github.com/Asilo5/byob-csl.git

Run $ npm install in your terminal

To start your server run $ npm start

Make sure that server is running on http://localhost:3001

What was used to build BYOB

Plant Shop API was built using:

  • Node.js
  • Express
  • Knex
  • PostgreSQL

Endpoints

url verb options sample response
http://localhost:3001/api/v1/cities GET not needed Array of all existing cities: [{"id": 21,"city": "Berlin","avgVegans": "80,000"},...]
http://localhost:3001/api/v1/restaurants GET not needed Array of all existing restaurants: [{"id": 59,"restaurant_id": 21,"name": "Cat Tuong","restaurantType": "Vietnamese vegan cuisine ","address": "Kastanienallee 89, Berlin, Germany, 10435"},...]
http://localhost:3001/api/v1/cities/:id GET not needed Array of all existing city: [{"id": 21,"city": "Berlin","avgVegans": "80,000"}]
http://localhost:3001/api/v1/restaurants/:id GET not needed Array of all existing restaurant: [{"id": 59,"restaurant_id": 21,"name": "Cat Tuong","restaurantType": "Vietnamese vegan cuisine ","address": "Kastanienallee 89, Berlin, Germany, 10435"}]
http://localhost:3001/api/v1/cities POST { city: <String>, avgVegans: <String> } New City: { city: <String>, avgVegans: <String> }
http://localhost:3001/api/v1/restaurants POST { name: <String>, restaurantType: <String>, address: <String> } New Restaurant: { name: <String>, restaurantType: <String>, address: <String> }
http://localhost:3001/api/v1/restaurants DELETE not needed Response: 1

whats-new-times's People

Contributors

asilo5 avatar robbiejaeger avatar

Watchers

James Cloos avatar  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.