Skip to content

Instantly share code, notes, and snippets.

@Cycymomo
Last active January 3, 2016 01:09
Show Gist options
  • Save Cycymomo/8387496 to your computer and use it in GitHub Desktop.
Save Cycymomo/8387496 to your computer and use it in GitHub Desktop.
Comment déployer un site créé avec MEAN gratuitement et facilement sur ubuntu

What does MEAN mean ?

MEAN - A Modern Stack: MongoDB, ExpressJS, AngularJS, NodeJS. (BONUS: Passport User Support).

Hébergement

https://heroku.com, gratuit jusqu'à 512 de RAM

# Installation du client Heroku
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh

# Se connecter avec son compte Heroku et suivre les étapes (création d'une clé SSH)
heroku login

Voir le site officiel pour une installation sur un autre système.

Pour déployer son application :

# Projet from scratch
mkdir projet && cd projet

# Faire votre app (1) ... puis versionner
git init
git add .
git commit -m "initial version"

# Push des modifs vers l'hébergement
heroku create 
git push heroku master

# Projet à partir d'un repo git existant
git clone git://github.com/heroku/projet.git && cd projet
# Push des modifs vers l'hébergement
heroku create 
git push heroku master

(1) : voir Démarrage rapide

Base de données

https://mongolab.com/, gratuit, jusqu'à 512 Mo de stockage

Démarrage rapide

A l'aide de Yeoman :

## Pour créer un boilerplate MEAN :
yo mean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment