Giter Site home page Giter Site logo

integrating-keploy-with-jsapp's Introduction

Integrating-Keploy-With-JSApp

This is a simple app where I have integrated Keploy with a NodeJS API. Feel free to play around with it or use it as a reference for integrating Keploy with your own NodeJS API. If you face any issues, you can open an issue at Typescript-SDK

Instructions For Running The App

  • The app uses the world weather api to get information about the weather of a city. You need to go to https://www.worldweatheronline.com/weather-api/api/docs/ and sign up to get the API key. Add the API key to the .env file as export apikey= <your key>
  • Clone the Keploy repo and go into the folder and run docker-compose up -d This will start the Keploy UI which you can access by going to localhost:6789.
  • You can change the keploy mode in the .env file to record, test or off according to your requirements. After every change, run source .env This updates all the environment variables.
  • Now start the app using node app.js
  • Now make some API calls and check the Keploy UI, your testcases should be recorded.
  • When you are done recording the testcases go to the .env file and change the keploy mode from record to test.
  • Update the environment variables using the command mentioned above, and start the server again. The test results will be shown on the terminal.
  • Before you start testing, you can also give your app a unique name in the .env file by changing the KEPLOY_APP_NAME field.

If you have any doubts feel free to reach out :)

integrating-keploy-with-jsapp's People

Contributors

pranshusrivastava avatar

Stargazers

 avatar

Watchers

 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.