ganny26 / express-boilerplate

Standard folder structure for express micro services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Express JS with Babel

Getting Started

git clone git@github.com:ganny26/express-boilerplate.git
cd express-boilerplate

yarn install

Then you can begin development:

# yarn
yarn dev

Production build

yarn build
yarn start
  • How to set config variables

Common config variables are present in config/ folder this project uses config which simply hold all your config's inside json.

  • How to get config variables inside code
const config = require("config");

config.get("port");
config.get("base_url");

How to run on docker

docker build -t myapp .
docker run -d --name myapp1 -p 3000:80 myapp

Babel Plugins

https://babeljs.io/docs/en/plugins/

For further design check below links

About

Standard folder structure for express micro services


Languages

Language:JavaScript 81.0%Language:Dockerfile 13.4%Language:Shell 5.6%