Dockernized and tech-stack agnostic ExpressJS app using monorepo structure to kick start your application development real quick.
"A monorepo ("mono" meaning 'single' and "repo" being short for 'repository') is a software development strategy where code for many projects is stored in the same repository." by Wikipedia.
Do not confuse monolithic architecture with monorepo. While these projects in monorepo may be related, they are often logically independent and run by different teams.
This assuemes you have all the prerequisites ready.
npm install
require packages.npm run init
to create a .env environment file. It is safe to regenerate same file with different value if necessary.- Start docker containers
- Development mode:
npm run docker:up:dev
- Production mode:
npm run docker:up
- to build the Dockerfile while booting up append
-- --build
- Development mode:
- Stop docker containers
npm run docker:down