Giter Site home page Giter Site logo

azdanov / timestamp-node Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 87 KB

Timestamp Microservice made in node for freeCodeCamp

Home Page: https://timestamp-node-clapbcwwpd.now.sh/

License: MIT License

TypeScript 30.22% JavaScript 69.78%
microservice typescript freecodecamp

timestamp-node's Introduction

Timestamp Microservice

Timestamp Microservice made in node for freeCodeCamp

Live version, needs time to boot up.

Based on Micro http microservice server and deployed on Now.

Internally Moment.js is used to parse query pathname url and return a json object with unix-timestamp and a natural representation of date.

Supports parsing from Moment.js.

On build will public folder contain bunldled index.js ready to be served.


Example Usages:

https://timestamp-node-rpbinkoiwf.now.sh/December%2015,%202015

https://timestamp-node-rpbinkoiwf.now.sh/1450137600

https://timestamp-node-rpbinkoiwf.now.sh/

Example Output:

{
    "unix": "1450137600000",
    "natural": "Tuesday, December 15, 2015 12:00 AM"
}

Usage

Yarn or Npm can be used to run the commands.

yarn dev to start micro-dev for development.

yarn format to format code using prettier

yarn build to build for production with output in public directory.

yarn start to serve public directory via micro.

Development

Latest Node.js LTS is required.

Husky and lint-staged are used to keep code consistent.

License

MIT

timestamp-node's People

Watchers

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