Git Product home page Git Product logo

webshot's Introduction

Node Skeleton Microservice

This repository is the node skeleton microservice to create node microservice for WRI API

  1. Getting Started

Getting Started

OS X + Docker

First, make sure that you have the API gateway running locally.

We're using Docker which, luckily for you, means that getting the application running locally should be fairly painless. First, make sure that you have Docker Compose installed on your machine.

git clone https://github.com/Vizzuality/node-skeleton
cd node-skeleton
./service.sh develop
./service.sh test
```text

You can now access the microservice through the CT gateway.

Native execution

Start by installing the node dependencies using:

npm install

You need to ensure the configuration below is present before starting the application server. You can do so using a .env file based on the provided .env.sample file. Refer to the configuration instructions below for more info.

Once the configuration variables are set you can start the application server:

npm start

Configuration

It is necessary to define these environment variables:

  • CT_URL => Control Tower URL. Leave empty for native execution
  • NODE_ENV => Environment (prod, staging, dev)
  • PORT => Port on which to execute the server. Leave empty for execution with Control Tower.

webshot's People

Contributors

davidsingal avatar rrequero avatar tiagojsag avatar

Watchers

James Cloos 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.