Giter VIP home page Giter VIP logo

izmjs's Introduction

NodeJS, Express and MongoDB starter

Introduction video

Table of Content

Getting started

Using izm CLI

npx izm
# Then follow the wizard

Manual clone

git clone [email protected]:izmjs/izmjs.git new-project
cd new-project
npm i
echo "NODE_ENV=development" > .env/.common.env
cp .example.env .env/.development.env

Optional: Add devtools functional module:

git clone [email protected]:izmjs/devtools.git modules/devtools
npm i

Start the project

npm start

Useful Commands

  • npm start - starts a dev server with nodemon
  • npm test - runs tests with mocha
  • npm run generate:module [name] - generate a new module (Optionnally you can give the name in the command line, otherwise you will be prompted to choose a name.)

VSCode helpers

iam

This shortcut will put a definition of new IAM rules in the file.

iam:route

Will generate a new route

iam:method

Will generate the definition of a method.

ctrl

Create new controller.

module:model

Generate a new mongoose model.

Auto depmloyment (Gitlab CI)

You need to define these environment variables in your repository:

  • PRODUCTION_URL: The production URL
  • PRODUCTION_DEPLOY_SERVER: List of production servers addresses or IP addresses. Should be separated by ,.
  • PRODUCTION_SSH_PRIVATE_KEY: The SSH key to use to connect to production servers.
  • STAGING_URL: The staging URL
  • STAGING_DEPLOY_SERVER: List of staging servers addresses or IP addresses. Should be separated by ,.
  • STAGING_SSH_PRIVATE_KEY: The SSH key to use to connect to staging servers.

izmjs's People

Contributors

midrissi avatar

Watchers

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