Skip to content

mvp-rockets/namma-generate

Repository files navigation

1. Introduction

A generator to generate mvp-rockets projects/boilerplate codes.

2. Pre-requirement

  • Ubuntu 20.04 or above
  • docker(19.xx or above)
  • docker-compose(1.28.xx or above)

3. Installation

npm i -g @mvp-rockets/namma-generator

4. Create the project/boilerplate codes.

mkdir project-name && cd project-name
namma_generate

Questions asked during the generation process: Project Name: (defaults to the current directory name)

Services to setup:

Service Name:

  • Will create a sub-directory of that name and copy the service code.
  • Will define the service name within package.json as project-name-service-name (e.g. project-api)
  • Set the service version as 1.0.0

In case of API, additional prompt "Cloud Provider" is asked for.

  • Currently we have only published the AWS version.

5. Development

This project uses git submodule. First time cloning: git clone --recurse-submodules -j4 Else, after cloning, you will need to run the following for the first time. git submodule update --init --recursive

Whenever you want to update the submodules, run git submodule update --recursive