Git Product home page Git Product logo

repler's Introduction

Repler

Keep your Repl.it / any other projects alive with this simple Repl pinger.

Usage

If you want to add your own urls to the pinger :-

  1. Fork this repo.
  2. Edit the urls array in index.js to add your own urls.
  3. Push the changes to your forked repo.
  4. Go to https://github.com/crizmo/repler and click on the "New Pull Request" button.
  5. Open a pull request and wait for it to be merged.
  6. Once the pull request is merged, your urls will be added to the pinger.

Installation

  1. Make sure you have Node.js and npm installed on your system.
  2. Clone this repository or download the code.
  3. Open a terminal and navigate to the project directory.
  4. Run the following command to install the dependencies:
npm install

Configuration

  1. Open the index.js file in a text editor.
  2. Edit the urls array to specify the URLs you want to fetch data from.
  3. Save the file.

Deployment

  1. Start the server by running the following command:
npm start
  1. The server will start running on port 3000.
  2. Open your web browser and navigate to http://localhost:3000 to confirm that the server is running.
  3. Use the following endpoints:
  • /status: Returns the status of each URL.
  • /keepalive: Confirms that the keep-alive functionality is working.

Customization

  • You can modify the fetch interval in the setInterval call in the keepReplAlive function.
  • Customize the URLs in the urls array to suit your requirements.

License

This project is licensed under the MIT License.

repler's People

Contributors

crizmo avatar akai771 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.