Project Requirment
- First make sure you have installed node.js 8.X and npm 5.X version. You can check there version in own terminal window simply by entering node -v and npm -v. You can also download required nodeJs and there NPM from here.
- Git and Python also need to be install. If you are MAC user Python may not been but on Window you may get error then you need to install python 2.X or visual studio because nodeJS run on top of C++ compiler so these dependencies might required on window machine.
- MongoDB also need to install locally or better you can use Mlab.
You need to create a account or you already have account just login.
Click on Create New button. You need to select free version and database location and provide unique name and create a database.
Once Database created you need to create User for that Database. You can click on user Tab inside Mlab. You can enter any username, password to create a username and password for your Database.
- Once Database create you need to Copy MongoDB URI from Mlab. It will looked like this:
mongodb://<dbuser>:<dbpassword>@ds147985.mlab.com:47985/dname
<dbuser> : you replace this with username you added for this DB.
<dbpassword> : replace it with database password:
Ex: Username: demo and Password: 12345 then, your Mlab url will be like this
mongodb://demo:[email protected]:47985/dname
Navigate to Server > Config > environment and replace the uri with your own account url. You can also update the same in production.ts file as well. If you like to setup default database then seedDB : true or you can change it to false.
Gulp also need to be install on your machine. You can run the below command, Please use sudo if you are MAC user.
** npm install -g gulp **