Giter VIP home page Giter VIP logo

mean-docker's Introduction

MEAN Stack using Docker

MEAN (full) stack application which comprises of MongoDB, ExpressJS, Angular and NodeJS. MongoDB takes care of the back end database, NodeJS and ExpressJS are for server side rendering, rest apis, and Angular is for front end.

Docker Compose can be used to create separate containers (and host them) for each of the stacks in a MEAN stack application. MEAN is the acronym for MongoDB Express Angular & NodeJs

Angular (9.0.6)

frontend is developed in Angular, it's in forntend folder Details

Expressjs (4.17.1)

Api folder contains REST apis which is developed using expressjs Details

Mongo DB

We are using Mongodb as database.

NGINX

Note: only if you are using docker.

We have uses NGINX loadbalancer in case if there is a requirement that frontend and api need to be exposed on same port. For configutration please check loadbalancer/nginx.conf

How to run project

using Docker

  1. Updated Connection String : "connectionString":"mongodb://database/mean-docker"

  2. To run the project run below command:

docker-compose up

Without Docker

Prerequisite

  1. Install latest Node js
  2. Install Nodemon as global package (To run exprerssjs in development mode) npm install -g nodemon
  3. Optional Install Angular CLI npm install -g @angular/cli
  4. Install Mongodb locally or Signup for a free account
  5. Before running the project make sure that you are able to connect MongoDb , you can use Robo 3T for it

Running the Project

  1. Update connection string in config.json file. (in api folder)
  2. Navigate to api folder and install all dependencies. RUN npm i
  3. Navigate to forndend folder and install all dependencies. RUN npm i
  4. From same folder RUN npm start

mean-docker's People

Contributors

nitin27may avatar

Watchers

James Cloos avatar

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.