Skip to content

Oregand/MEVN

Repository files navigation

The MEVN Starter Pack

Build Status

MEVN.JS is a full-stack JavaScript open-source solution, which provides a solid starting point for MongoDB, Node.js, Express, and Vue.JS based applications. The idea is to solve the common issues with connecting those frameworks, build a robust framework to support daily development needs, and help developers use better practices while working with popular JavaScript components.

Before You Begin

Before you begin I recommend you read about the basic building blocks that assemble a MEVN.JS application:

Project Structure

├── services
│   ├── stores-catalog-service
│   │   ├── intergration-test
│   │   ├── src
│   │   ├── .eslintrc.json
│   │   ├── .create-image.sh
│   │   ├── Dockerfile
│   │   ├── env
│   │   ├── package.json
│   │   ├── README.md
│   │   └── start-service.sh
│   └── albums-service
│   │   ├── intergration-test
│   │   ├── src
│   │   ├── .eslintrc.json
│   │   ├── .create-image.sh
│   │   ├── Dockerfile
│   │   ├── env
│   │   ├── package.json
│   │   ├── README.md
│   │   └── start-service.sh
│   └── raml-spec
│   │   ├── albums-service
│   │   └── stores-catalog-service.sh
│   └── api-gateway
│   │   ├── intergration-test
│   │   ├── src
│   │   ├── .eslintrc.json
│   │   ├── .create-image.sh
│   │   ├── Dockerfile
│   │   ├── env
│   │   ├── package.json
│   │   ├── README.md
│   │   └── start-service.sh
│   └── mongo-replica-with-docker
│   │   ├── admin.js
│   │   ├── albums.js
│   │   ├── create-replica-set.sh
│   │   ├── env
│   │   ├── grantRole.js
│   │   ├── mongo-keyfile
│   │   ├── replica.js
│   │   └── reset-docker-machines.sh
│   └── _docker_setup
│   │   ├── create-images.sh
│   │   ├── reset.sh
│   │   ├── setup-swarm.sh
│   │   └── start-services.sh
├── tests
│   └── k6
├── web
│   └── webapp
├── .gitlab-ci.yml
├── .jshintrc
├── app.yml
├── LICENCE.md
├── package.json
├── README.md
├── kraken.sh
└── .gitignore

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

$ npm install -g yarn

Downloading MEVN.JS

There are several ways you can get the MEVN.JS boilerplate:

Cloning The GitHub Repository

The recommended way to get MEVN.js is to use git to directly clone the MEVN.JS repository:

$ git clone https://github.com/oregand/MEVN.git MEVNjs

This will clone the latest version of the MEVN.JS repository to a MEVNjs folder.

Quick Install

Once you've downloaded the boilerplate and installed all the prerequisites, you're just a few steps away from starting to develop your MEVN application.

The boilerplate comes pre-bundled with a package.json file that contain the list of modules you need to start your application.

To install the dependencies, run this in the application folder from the command-line you need to run one step:

  1. Client && Server
$ cd /web/webapp && yarn

This command does a few things:

  • First it will install the dependencies needed for the application to run.
  • If you're running in a development environment, it will then also install development dependencies needed for testing and running your application.
  • When the yarn packages install process is over, yarn will initiate a install command to install all the front-end modules needed for the application
  • To update these packages later on, just run yarn update

Running Your Application

Run your application using yarn:

  1. Client
$  yarn run dev
  1. Server
$  node server.js

Your application should run on port 8080 with the development environment configuration, so in your browser just go to http://localhost:8080

That's it! Your application should be running. To proceed with your development, check the other sections in this documentation. If you encounter any problems, try the Troubleshooting section.

Explore config/dev.env.js for development environment configuration options.

Running in Production mode

To run your application with production environment configuration:

$ npm start

Explore config/prod.env.js for production environment configuration options.

Testing Your Application

You can run the full test suite included with MEVN.JS with the test task:

$ npm test

This will run both the server-side tests and the client-side tests.

To execute only the unit tests, run the unit task:

npm run unit

To execute only the e2e tests, run the e2e task:

npm run e2e

Deploying to PAAS

Deploying MEVNJS To GAP

  • Coming Soon!

Getting Started With MEVN.JS

You have your application running, but there is a lot of stuff to understand. I recommend you go over the Official Documentation. In the docs we'll try to explain both general concepts of MEVN components and give you some guidelines to help you improve your development process. I tried covering as many aspects as possible, and will keep it updated by your request. You can also help us develop and improve the documentation by checking out the gh-pages branch of this repository.

Community

  • Coming Soon!

Contributing

I welcome pull requests from the community!

Credits

Utterly inspired by the great work of Vue.JS

License

The MIT License

About

The MEVN Starter Pack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published