Hello dev community π
A quick article to share with you my latest creation.
Lately several product ideas come in my mind and I thought to myself that I always use the same tools, languages, libraries to achieve my goals and create my web applications here are the main ones:
- docker.
- nodeJs (expressjs, mongodb with mongoose).
- Vuejs.
Usually I create a repository for each service, that is to say I isolate the api, the front and the container in separate repositories but the disadvantage of this method is that the configuration takes some time and thatβs not the goal I want it to be in a few seconds and with some manipulations I'll like to have a dev environment ready to go !
So here's my solution:
A command line tool that allows me to create a repoitory following a template and clone this folder locally in order to run a single command to have my dev environment ready.
What you need:
- Working with a macos operating system.
- Docker.
- Nodejs >= 12.0.0.
- vue-cli installed globally on your computer.
- Github token.!
What you get:
- Fresh new project connected to a fresh new repo.
- Docker with docker-compose to run all your services.
- Mongodb instance.
- If using mongodb atlas script to dumb database in mongo container.
- Redis instance.
- Nodejs API ready to use with expressjs.
- Vuejs app with vue-cli.
- Eslint airbnb config.
- Prettier config.
- ...
Here is the structure of your project:
βββ .github/ // github metadata
βββ api/
βββ .eslintrc.json
βββ .prettierignore
βββ .prettierrc.json
βββ dockerfile
βββ index.js
βββ nodemon.json
βββ package.json
βββ client/
βββ dockerfile
// vue-cli boilerplate.
βββ .dockerignore
βββ .gitignore
βββ LICENSE
βββ bdd.sh
βββ docker-compose.yml
βββ redis.conf
βββ README.md
How to use it:
Install
Install the project globally:
npm i -g fast-mvp-cli
Run process
fast-mvp-cli
Or with npx required npm >= v5.2
npx fast-mvp-cli
Once it's done, just follow the process π
For those curious, do not hesitate to contribute:
Thank's :)
Top comments (0)