Demo todo app in Angular
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test/spec
.editorconfig
.gitignore
Gruntfile.js
README.md
config_sample.json
index.html
items.json
karma.conf.js
package.json
server.js

README.md

To-Don't

Demo AngularJS to-do app. Made for a blog post about unit testing Angular apps (coming soon).

Installation

  • Fork and clone this repo and enter the project directory
  • Install dependencies: npm install && npm install -g grunt grunt-cli

Configuration:

Create a file config.json with the following structure:

{
	"port": 8080,
	"API_BASE_URL": "'http://localhost:8080/todos/'"
}

port is the port number the app should run on. API_BASE_URL is the full address of the server, to be replaced (via Grunt) in the JavaScript source files.

Running the app

  • Build the client application: npm run build
  • Run the server: node server.js

Check the console output for the URL of the app, and navigate to it in your browser.

Development

To watch for all changes to files and rebuild/run unit tests, run npm start. You can also manually build the project with npm run build and run the unit tests with npm test.