8000 GitHub - Bamabi/meants-docker: MEAN stack Docker development with Angular and Express, both powered by Typescript.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bamabi/meants-docker

 
 

Repository files navigation

MEANTS-DOCKER

MEAN stack development with Angular and Express, both powered by Typescript. This repository was started under Angular 2 and updated to Angular 4. This is using Docker Compose set up for running the application within 3 containers:

  • frontend: Angular4
  • backend: Express
  • database: MongoDB

Prerequisites

Quick start

  • Initializes application
# clone the repository
# --depth 1 removes all but one .git commit history
git clone --depth 1 https://github.com/yraffin/meants-docker.git

# change directory to the repository directory
cd meants-docker

# Run docker (use -d to run in detached mode)
docker-compose up

# Restore MongoDB dump : ./mongodb-dump-00.agz
mongorestore --host localhost:27018  --gzip --archive=mongodb-dump-00.agz

Devlopment

Frontend : Just got some problems with latest stable node version (8.9.1) Solve :

  • Downgrade npm version to 5.2.0 : npm install -g npm@5.2.0
  • Clear npm cache : npm cache clear --force
  • Delete node_modules dir and run npm install again Backend : On npm install if you got a python missing error run :
# Install the windows tools 
npm install --global --production windows-build-tools
npm install --global node-gyp
# Set the python env var required by node build
setx PYTHON "%USERPROFILE%\.windows-build-tools\python27\python.exe"

About

MEAN stack Docker development with Angular and Express, both powered by Typescript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.9%
  • CSS 8.5%
  • HTML 8.0%
  • JavaScript 0.6%
0