Coder Social home page Coder Social logo

sggts04 / thanosapi Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 4.0 200 KB

Thanos API: API that returns Thanos quotes. Built in ExpressJS in Node

Home Page: https://thanosapi.herokuapp.com/

License: MIT License

JavaScript 86.69% EJS 13.31%
express expressjs nodejs thanos

thanosapi's Introduction

Thanos Quotes API!

Built using ExpressJS framework in NodeJS.

Endpoints:

Grab a random Thanos quote!

https://thanosapi.herokuapp.com/random/

Grab a specified number of random Thanos quotes!

https://thanosapi.herokuapp.com/random/<integer>/

Grab all Thanos quotes!

https://thanosapi.herokuapp.com/all/

Make a contribution!

Would love to make the api better and more efficient if someone is willing to help. Also if I missed a thanos quote, submit a Pull Request, with the quote added to the quotes/quotes.js file.

Run Locally

  • Clone the repo
  • npm install
  • npm start
  • Visit localhost:3000 on your browser!

thanosapi's People

Contributors

anastasiyakupr avatar dependabot[bot] avatar sggts04 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

thanosapi's Issues

Access tp the API has been BLocked by CORS policy

I tried to use the api for a mini project i'm building and it keeps returning this error: Access to XMLHttpRequest at 'https://thanosapi.herokuapp.com/random/' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

can you please allow request to the API on your Origin. refer to this MSDN doc for more details: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin . thank you.

NPM package?

How would i use this in NodeJS?
Is there like a NPM package or a code snippet?

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.