Skip to content

Optimizes the uptime of your free backend instance on Render by sending automated requests, preventing it from shutting down due to inactivity.

Notifications You must be signed in to change notification settings

Tibz-Dankan/appcrons

Repository files navigation

Appcrons

Appcrons optimizes the uptime of your free backend instance on Render by sending automated requests, preventing it from shutting down due to inactivity.

Documentation

For full documentation, visit appcrons.netlify.app.

Installation

To install the Appcrons backend repo locally, follow these steps:

Prerequisites

Steps

  1. Clone the repository:

    https://github.com/Tibz-Dankan/appcrons.git
    
    cd appcrons
  2. Install packages:

    make install
    
  3. Set up environmental variables:

Variable Type Description
APPCRONS_TEST_DSN string DSN pointing to test postgres db
APPCRONS_DEV_DSN string DSN pointing to development postgres db
APPCRONS_STAG_DSN string DSN pointing to staging or CI/CD postgres db
APPCRONS_PROD_DSN string DSN pointing to production postgres db
REDIS_URL string URL pointing to your redis instance
JWT_SECRET string key used to sign JWT tokens

create .env file in the root project directory and add all these variables

Example

APPCRONS_DEV_DSN="host=localhost user=postgres password=<db password> dbname=<db name> port=<db port> sslmode=disable"
  1. Start the application:

    make run
  2. Run tests in devlopment:

    make test
    
  3. Run tests in staging:

    make stage
    

Note: The application server port number is 8080

About

Optimizes the uptime of your free backend instance on Render by sending automated requests, preventing it from shutting down due to inactivity.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages