Steps for installation and running dpitc-portal
- Fork the repository from https://github.com/rbaguila/dpitc-portal
- git clone https://github.com//dpitc-portal.git
- cd dpitc-portal
- git fetch origin
- git checkout develop (Always work, create other branches and push from develop branch)
- Install mongodb if you currently don't have one. https://www.mongodb.com/download-center#community
- Installation instructions for Linux users: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
- Install nvm and install the current stable of release as of now (nvm install 6.9.4)
- Installation instruction for Linux users using script: https://github.com/creationix/nvm#install-script
- Run mongodb from the terminal: sudo service mongod start
- Create your own .env file containing Cloudinary url and mandrilll api key.
- npm install
- node keystone
- The application must be running after the last command. If there is problems and errors try reading and consulting the keystone docs. http://keystonejs.com/docs/
Basic parts of currrent keystone dpitc-portal boilerplate.
NOTE: We are using keystone version ^4.0.0-beta.4 updated from the stable release.
- The boilerplate have the main page of the portal. It can be accessed at localhost:3000/
- Keystone's architecture follows the Model-View-Controller design or MVC.
- All the database related files will be found at the 'models' directory
- The controller section will be found at the 'routes' directory
- The view section will be found inside the 'templates' directory