Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Dev-Mind

Overview

This is the sources of our web site https://dev-mind.fr.

Browser Support

At present, we officially aim to support the last two versions of the following browsers:

  • Chrome

  • Edge

  • Firefox

  • Safari

  • Opera

  • Internet Explorer 9+

Build site

You need to use Node > 7.0. The lifecycle of the dependencies is managed by Yarn and the lifecycle of the app by Gulp.

To install the project use

yarn install

To build the project launch

gulp

To launch the website locally use this command line

node app.js

Database

We use a mongodb database. In dev mode you can use a docker image

Install an image

To start an image

sudo docker ps
sudo docker image ls
sudo docker run -d --name devmind-mongo -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=secret -e MONGO_INITDB_DATABASE=devmind -p 0.0.0.0:27017:27017 -p 0.0.0.0:28017:28017  mongo:latest

On the first install if you want to add a username to access to the db called devminddb

mongo --authenticationDatabase admin --host localhost -u root -p secret devminddb --eval "db.createUser({user: 'devmind', pwd: 'pass', roles: [{role: 'readWrite', db: 'devminddb'}], passwordDigestor:'server'});"
mongo --authenticationDatabase admin --host localhost -u root -p secret devminddbtest --eval "db.createUser({user: 'devmind', pwd: 'pass', roles: [{role: 'readWrite', db: 'devminddbtest'}], passwordDigestor:'server'});"

Start an image

sudo docker start  devmind-mongo

Recreate an image

sudo docker rm  devmind-mongo
sudo docker run -d --name devmind-mongo -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=secret -e MONGO_INITDB_DATABASE=devmind -p 0.0.0.0:27017:27017 -p 0.0.0.0:28017:28017  mongo:latest
mongo --authenticationDatabase admin --host localhost -u root -p secret devminddb --eval "db.createUser({user: 'devmind', pwd: 'pass', roles: [{role: 'readWrite', db: 'devminddb'}], passwordDigestor:'server'});"
mongo --authenticationDatabase admin --host localhost -u root -p secret devminddbtest --eval "db.createUser({user: 'devmind', pwd: 'pass', roles: [{role: 'readWrite', db: 'devminddbtest'}], passwordDigestor:'server'});"

License

MIT