GithubHelp home page GithubHelp logo

madlabsinc / mevn-cli Goto Github PK

View Code? Open in Web Editor NEW
821.0 821.0 154.0 9.04 MB

Light speed setup for MEVN(Mongo Express Vue Node) Apps

Home Page: https://mevn.surge.sh

License: MIT License

JavaScript 86.66% Dockerfile 0.06% HTML 1.70% Vue 11.58%
babel-es6 babel-preset babel7 cli eslint express gssoc19 hacktoberfest javascript mevn mongodb mongoose nodejs npm-package prettier vue vuejs

mevn-cli's People

Contributors

agarwalrounak avatar ajomadlabs avatar alan755 avatar anto-christo avatar aquibbaig avatar arrlanxcidic avatar creatoon avatar danivijay avatar darrylpargeter avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar gautamkrishnar avatar haxzie avatar jamesgeorge007 avatar jamesjose03 avatar joyskmathew avatar kamerk22 avatar klauskpm avatar konsvasi avatar meroware avatar monkeywithacupcake avatar nathfreder avatar open-source-explorer avatar pupupulp avatar ritwik12 avatar santoshyadavdev avatar scriptonist avatar snoopysecurity avatar thakurkarthik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mevn-cli's Issues

Install heroku-cli on the go

Present scenario

Currently, mevn deploy expects to have access to heroku within the machine. The process crashes with a default message if otherwise.

What is to be done

Handle the failing case such that a custom message is shown instead. Also, there should be a prompt asking the user if he/she should get it installed (Y/N) and go forward with the installation.

Acknowledgements section

Add appropriate content listing out inspirations. You can find a docs directory with a Readme.md file. Just have your changes there ๐Ÿ‘

Implement GraphQL

For now the server part supports only traditional RESTful API which has to be extended with GraphQL.

Add option to generate new components

Add required command, for instance mevn-cli generate:component <new_component>

This command should help developers to create a vue-component in the front-end inside the components folder.

Implement code splitting

The user should be able to code split a particular component as specified using dynamic imports.

For instance, mevn-cli codesplit <component> should change the content within the routes file of the respective component to the code splitting way.

Adding UI for MEVN-cli

With this we plan to create a ui for MEVN-cli tool which will help developers to add packages and integrations, basically execute different commands used in cli via a ui which would be running locally.

Add SSR option with Nuxt.js

Currently the user is welcomed with 3 options (Boilerplate):

  • Basic
  • PWA
  • GraphQL

As a fourth option provide support SSR capability with Nuxt-js

Further he/she should be prompted to go with either Universal / SPA

Provide support for prisma DB tool

Prisma replaces traditional ORMs and custom data access layers with a universal database abstraction used via the Prisma client. It provides Type-safe database access including filters, aggregations, pagination and transactions.
The necessary configurations is to be automated as required.

Integrate SQL databases

Currently MEVN-cli only supports MongoDB and with this addition we could expand it to allow integration for SQL Databases. Also, the necessary configurations for ORM's like sequelize is to be automated.

Warn the user if git is not installed

Present scenario

Currently, mevn create:git-repo expects to have access to git within the machine. A default error message is thrown.

What is to be done

Handle the failing case such that a custom message is shown instead. Also, there should be a prompt asking the user if he/she should get it installed (Y/N) and go forward with the installation.

Linux/Mac

Add vuex state management

Make the provision to add state management within the client part which asks the user whether he would require vuex for the current project.

Add provision to have test runners

Add prompts such that user is required to decide whether he/she require any sort of test runners (Jest, Ava, Mocha) for the project and automate all further installation procedures.
This is the file to work with: init

Add vue-routing

All the dependencies such as vue-router has to be linked up on prompting the user whether he would require it or not.

Add Gifs within Docs

Add Gifs within the Docs part demonstrating each command with description for each section.

Various sections may comprise:-

  • Initialising the project
  • Create routes
  • Create model file
  • Create controller file
  • Create config file
  • Running server and client

Contributors guide

Add appropriate contributors guide, listing out the steps involved.

  • Fork the repository
  • Make your required changes
  • Commit those in a separate branch
  • Submit a PR for review

Add axios dependency

Ask the user whether he requires axios to link up the client and server part. If so, add the required dependencies and couple of boilerplate code.

Write unit tests

There is an action handler for each command. You can also find a couple of helper functions consumed by the respective handler. We need to write unit tests to ensure that the helpers serve their purpose.

Upgrade execa

The package execa has so many updates and deprecated options.

Shouldn't this be updated?

Provide support for webpack 4

Migration from webpack v3 to v4 requires a lot of manual configurations which has to be automated with a particular command.

Update commands section within docs

  • Remove Server Commands section.
  • Rename General Commands to Available Commands.
  • Add missing entries within the list of Available Commands.
  • Change mevn run client/server to mevn serve

This is the file to work with: README

Refer Repo Readme

Quick start

Update docs with the following content:

   mevn-cli init <your_new_webapp>
   mevn-cli run:client
   mevn-cli run:server

Add Proper Comments

Code base requires proper comments such that it will help make the code base more easy to ready
and more over help new contributors to get started easily

Add validation for client

Ask the user whether he would require pre-available validation plugins like vee-validate and add those dependencies.

Add vuex configuration

The vuex package can be added via the add:package command. It creates a store.js file with the initial boilerplate within client/src directory.

The new store.js file has to be imported and passed on to the Vue instance. Importing store file is already done which still is not that perfect. If the same command is being repeatedly executed, content repeats (import store from './store') within the main.js file which has to be handled. Also, the store being imported has to be passed in as an arguement within the Vue instance.
This is a typical main.js file:-

import store from ./store;
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})

Capitalise Cli ?

mevn cli - mozilla firefox_011

CLI is an Abbreviation so It should Ideally be capitalised right ?

Thoughts ๐Ÿค”

[Question] Placement of mevn.json file

Hi,
I have some doubts regarding the mevn.json file.

If I'm not wrong, the mevn.json file contains info regarding a particular project. Then why is it outside of the project directory, shouldn't it be inside the project directory since it is specific to it?

Due to the placement of mevn.json file outside the project directory, the user cannot create more than one project in the same location. Also, due to this, the user currently has to execute project-specific commands (like create: component, etc) outside of the project directory, ideally those commands should be called within the specific projects.

May I know the reason and thought process behind the placement of mevn.json file?
Thank you.

Warn the user if docker is not installed

Present scenario

Currently, mevn dockerize expects to have access to docker-compose within the machine. It crashes yelling that docker-compose not found which is a default message as thrown by the system.

What is to be done

Handle the failing case such that a custom message is shown instead. Also, there should be a prompt asking the user if he/she should get it installed (Y/N) and go forward with the installation.

Linux/Mac

Unhandled Warning

Repeated execution of server commands like:-

mevn-cli create:controller
mevn-cli create:route
...
will create the file but the repeated execution of these commands will note prompt warnings like
"The file already exist and do you wish to create anyway" and receiving user input as yes/no.

Add Project Hierarchy

Add a section that throws light into the overall view of the project structure.
This may include the various directories and files included in a hierarchical manner.

Add changelog

Add changelog (version-history) to the Docs listing couple of recent commit history.

mevn-cli website homepage

As per now what we have is just the documentation part done in vuepress. We require a homepage that will serve the purpose of an intro section having a brief description of the tool.

For this you are required to work with the README.md file within docs directory.

Adopt commitlint standards

We're gonna follow commitlint standards while framing up the commit messages.
Refer these guidelines.

  • install commitlint-cli as a dev-dependency.
  • configure pre-commit hook with husky.
  • update docs to include a dedicated section regarding how to write commit messages based on the standards.

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.