#Todo Application
This application was developed with the latest released 2.x.x. versions of Angular 2 and 7.1 of Node.js.
All the latest dependencies for Node.js, Mongoose (MongoDB api), Angular, and Gulp (build system) were constantly updated
during development in package.json at the time of this writing.
Please note that the server configuration requires a running MongoDB server for the index page to work properly.
Local installation : https://mongodb.com
-
Download the local installation from https://www.mongodb.com/download-center?jmp=nav#community.
-
Select the operating system from the dropdown menu and press the Download button.
-
On Windows follow these instructions: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows.
-
To start MongoDB server, run mongod.exe. For example, from the Command Prompt: 'C:\mongodb\bin\mongod.exe'
-
To connect to MongoDb through the mongo.exe shell, open another Command Prompt and type
C:\mongodb\bin\mongo.exe
-
Begin using MongoDB. To help you start using MongoDB, Follow the Getting Started Guide for Node js
Database as a Service
- Database-as-a-service: https://mlab.com/
- Create an mlab account
- Press ‘Create new’ button
- Select a cloud provider
- Select Single-node
- Select ‘Sandbox’ (free)
- Select a database name
- Press ‘Create new MongoDB deployment
- Click on the database
- Click on ‘Users’ and add a user and password to the database.
- The database is ready to use.
- If using the database-as-a-service update the /config/config.json file with the database username and password.
This repository requires node.js, availible for free for all platforms on https://nodejs.org/en/.
After you have node.js installed, the repository can be installed with
`npm install`
#Gulp Build System
The project uses Gulp to build the application and convert TypeScript to JavaScript. All the Gulp dependencies are listed und 'devDependencies' section of the package.json file and 'typings' module is listed under 'dependencies.'
Build on the command line
-
For development on command line please type the command below. This will run a build script listed in package.json and will start a watcher which listens for any changes to typescript files.
npm run gulp
.
Build on WebStorm
- Start a Guilp task runner which will compile TypeScript files by pressing Alt+F11 and specify the default gulp file.
- This will create a Gulp build configuration which you can use in WebStorm. Just select the configuration and press the Run button.
This repository requires node.js, available for free for all platforms on https://nodejs.org/en/.
Run on command line After you have node.js installed, the server and application can be run with.
`node app.js`
Using nodemon
for development is recommended. More information can be found here.
Run on WebStorm
- Open the /bin folder and right click on 'www' and select 'Run bin/www'. This will create a run configuraiton which you can use in Webstorm to start the application. Just select teh configuration and press the Run button.
This site uses the Angular 2 frameework for front end development.
For more information about Angular 2, please refer to the official documentation.
Author: Raul Zuniga
Date: 11/24/2016