Giter Club home page Giter Club logo

quotes-api's Introduction

Inspirational Quotes API

This API is designed to return quotes to the user.

Endpoints

  • / => Will return all the quotes listed in the quotes.json file.
  • / => id is a variable which returns a quote having that id.

Run the application

  • Make sure you have NodeJS installed. Check it by typing this command in your terminal -
node --version
  • Fork this repository.

  • Clone this repository by running the following command in your terminal -

git clone https://github.com/GDSC-RTU/quotes-api
  • cd into the folder by using the following command -
cd quotes-api
  • Install the dependencies by running the following command -
npm install
  • To run the application, type the following command in your terminal -
npm run start
  • Access the results produced by accessing the following URL in your browser -
localhost:8080

Run within docker

If you are more familiar with Docker, you can also build an image using the Dockerfile and start it:

$ docker build -t quotes-api .
$ docker run -p 8080:8080 quotes-api

Contribution Guidelines

Check contribution.md if you want to learn how to make a contribution.

Append your quote to quote.json inside the quote/ folder and raise the PR.

{  
    "quote":"Your new Quote",
    "author":"Author of your quote",
    "id": "+1 the previous id"
}

Note :

  • Please avoid the repetition of quotes.
  • Do not make any changes in other files.
  • Do not repeat the id's

quotes-api's People

Contributors

ishubham21 avatar bairwa25 avatar diyavj avatar milanagrawal avatar kishor-khade avatar ashi-00 avatar rustzz-27 avatar iamrk09 avatar kunalgupta557a 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.