Skip to content

Dev-Mind/dev-mind.fr

Repository files navigation

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

Start the DB

sudo docker-compose up

Recreate an image

sudo docker-compose rm

To launch a mongosh you can use

docker exec -it devmind-mongo mongosh mongodb://localhost:27017

Initialize DB

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

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

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'});"
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