Giter VIP home page Giter VIP logo

api4jokes's Introduction

APIs 4 Jokes

API 4 Jokes project used as a way to teach and let others discover the power of APIs.

Installing this project:

  1. clone repo
  2. Change directory to api4jokes and install package dependencies: npm install

Running this project:

  1. Change directory to api4jokes
  2. Run the app: node app
By default the application will run on port 3000. Set system variable PORT to a different value if needed.
  1. Open a browser and go to: http://IP_ADDRESS:PORT, e.g. http://localhost:3000 This should open the Swagger UI for the APIs for Jokes project.

Note: All the APIs are functional by default out of the box, except for the one that sends SMS messages, for obvious reasons. However the API that sends SMS messages can be easily re-configured if you have a Twilio account. For more information on how to send SMS message swith Twilio go to: https://www.twilio.com/docs/api/messaging/send-messages

Running the associated HTML5 app:

Once the NodeJS service is running, apart from the Swagger UI, I also leave a small HTML5 application that interacts with the running REST APIs. In order to acces that:

  1. Open a new browser window
  2. Go to: http:IP_ADDRESS:PORT/ws For example: http://localhost:3000/ws

Note: Same as with the Swagger UI, the HTML5 page is fully functional, it gets random jokes and translate them, as this does not incurr into external fees, but it will not send SMS messages. However if you enable your API with your own Twilio account, then it will fully work.

For more information, go to: THIS_BLOG

Any question, feel free to contatc me directly via https://www.linkedin.com/in/citurria/

Enjoy!

api4jokes's People

Contributors

citurria avatar barackd222 avatar

Watchers

 avatar

Forkers

dre32722

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.