Code Monkey home page Code Monkey logo

shouldigivekudos's Introduction

shouldideploy.today

FOSSA Status

Getting started

  • Run:
    • npm i — install deps.
    • npm run dev start dev server
    • now dev if you need local serveless function (requires now)

Open in Gitpod

Add your reasons

Reasons are located under reasons.ts

API endpoint

There is an enpoint to use on your CI or just for fun at https://shouldideploy.today/api

You can also provide optional parameters to customize the API response:

  • tz: The timezone to use when evaluating the date and time. The default value is UTC. Pass a valid timezone string, such as America/New_York or Europe/London default UTC.
  • date: The date to evaluate. The default value is the current date. Pass a valid date string in the format YYYY-MM-DD, such as 2023-03-31.

Examples

Get the default API response using the current date and time in the UTC timezone:

https://shouldideploy.today/api

Get the API response for a specific timezone (e.g., Europe/London):

https://shouldideploy.today/api?tz=Europe/London

Get the API response for a specific date (e.g., 2023-03-31) in the UTC timezone:

https://shouldideploy.today/api?date=2023-03-31

Get the API response for a specific date (e.g., 2023-03-31) in a specific timezone (e.g., America/New_York):

https://shouldideploy.today/api?tz=America/New_York&date=2023-03-31

API Response

The API returns a JSON object containing the following keys:

  • timezone: The timezone used for evaluating the date and time.
  • date: The date provided as parameter in ISO format (YYYY-MM-DDTHH:mm:ss.sssZ)
  • shouldideploy: A boolean value indicating whether you should deploy today or not.
  • message: A string containing a reason or explanation for the shouldideploy result.

Example response:

{
  "timezone": "UTC",
  "date": "2023-03-31T00:00:00.000Z",
  "shouldideploy": false,
  "message": "It's Friday, better not deploy today."
}

Community projects

Credits

Favicon created by emilegraphics

License

FOSSA Status

shouldigivekudos's People

Contributors

dependabot[bot] avatar baires avatar dependabot-preview[bot] avatar dependabot-support avatar harshavardhannakkina avatar snyk-bot avatar gustavonovaes avatar brunomachadob avatar greenkeeper[bot] avatar wcorners avatar victoralmaraz avatar mikk150 avatar sanscripter avatar wervice avatar tcufer avatar fossabot avatar sweebee avatar welbsantos avatar sudorock avatar rteobaldo avatar ullgren avatar nleduc avatar mmeester avatar matguig avatar matt-h avatar klyfftoledozup avatar sonic182 avatar gabriellpa avatar elvinsamuel avatar dennissiq 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.