this is a chronic pain management system where user can come and log his symptoms goals and activities in order to understand correlations between them.
user can see charts displaying pain mood and cognitive performance against daily activities
#to do
update readme file
create articles for services
add help button on goals and activities
revamp targets view
add % of target completed for a day
add remaining time to achieve daily target
add more data about activity on the activities view
add esa assessment service
add pip assessment service - started
add quantitative chart for body parts pain
Travis
rearange show pain log
add other types data recording services
activity log
envelope log
symptom log
finish charts
add goals feature
0auth implement
integrate tinymce
input text on diary creator
add tabs for mood and cognitive performance
email field for user signup and sign in
DEACTIVATE USER LIST AT
EXPLORE PUSHER Twitter
add overall pain and fatigue levels
add previous diaries and pagination and arrange from newest to oldest
add file uploader ================> ???
add WYSIWYG ======================> ???
add deployment script to server
ansible
add scroller to show one question at the time
add fatigue and cognitive questions
dashboard with charts for all symptoms and pains
implement per user pain log
An Angular 2 starter kit featuring Angular 2 (Router, Forms, Http,
Tests, E2E), Material, Karma, Protractor, Jasmine, Istanbul, TypeScript, @types, TsLint, Codelyzer, Hot Module Replacement, and Webpack 2
If you're looking to learn TypeScript see TypeStrong/learn-typescript
This seed repo serves as an Angular 2 starter for anyone looking to get up and running with Angular 2 and TypeScript fast. Using a Webpack 2 for building our files and assisting with boilerplate. We're also using Protractor for our end-to-end story and Karma for our unit tests.
- Best practices in file and application organization for Angular 2.
- Ready to go build system using Webpack for working with TypeScript.
- Angular 2 examples that are ready to go when experimenting with Angular 2.
- A great Angular 2 seed repo for anyone who wants to start their project.
- Testing Angular 2 code with Jasmine and Karma.
- Coverage with Istanbul and Karma
- End-to-end Angular 2 code using Protractor.
- Type manager with @types
- Hot Module Replacement with Webpack
- Material Design with angular/material2
Make sure you have Node version >= 5.0 and NPM >= 3
Clone/Download the repo then edit
app.ts
inside/src/app/app.ts
npm install
# start the server
npm start
# use Hot Module Replacement
npm run server:dev:hmr
go to http://0.0.0.0:3000 or http://localhost:3000 in your browser
What you need to run this app:
node
andnpm
(brew install node
)- Ensure you're running the latest versions Node
v4.x.x
+ (orv5.x.x
) and NPM3.x.x
+
If you have
nvm
installed, which is highly recommended (brew install nvm
) you can do anvm install --lts && nvm use
in$
to run with the latest Node LTS. You can also have thiszsh
done for you automatically
Once you have those, you should install these globals with npm install --global
:
webpack
(npm install --global webpack
)webpack-dev-server
(npm install --global webpack-dev-server
)karma
(npm install --global karma-cli
)protractor
(npm install --global protractor
)typescript
(npm install --global typescript
)
After you have installed all dependencies you can now run the app. Run npm run server
to start a local server using webpack-dev-server
which will watch, build (in-memory), and reload for you. The port will be displayed to you as http://0.0.0.0:3000
(or if you prefer IPv6, if you're using express
server, then it's http://[::1]:3000/
).
# development
npm run server
# production
npm run build:prod
npm run server:prod
# development
npm run build:dev
# production
npm run build:prod
npm run server:dev:hmr
npm run watch
npm run test
npm run watch:test
# make sure you have your server running in another terminal
npm run e2e
npm run webdriver:update
npm run webdriver:start
npm run webdriver:start
# in another terminal
npm run e2e:live
npm run build:docker
Configuration files live in config/
we are currently using webpack, karma, and protractor for different stages of your application
TypeScript 1.7.x includes everything you need. Make sure to upgrade, even if you installed TypeScript previously.
npm install --global typescript
When you include a module that doesn't include Type Definitions inside of the module you can include external Type Definitions with @types
i.e, to have youtube api support, run this command in terminal:
npm i @types/youtube @types/gapi @types/gapi.youtube
In some cases where your code editor doesn't support Typescript 2 yet or these types weren't listed in tsconfig.json
, add these to "src/custom-typings.d.ts" to make peace with the compile check:
import '@types/gapi.youtube';
import '@types/gapi';
import '@types/youtube';
When including 3rd party modules you also need to include the type definition for the module if they don't provide one within the module. You can try to install it with @types
npm install @types/node
npm install @types/lodash
If you can't find the type definition in the registry we can make an ambient definition in this file for now. For example
declare module "my-module" {
export function doesSomething(value: string): string;
}
If you're prototyping and you will fix the types later you can also declare it as type any
declare var assert: any;
declare var _: any;
declare var $: any;
If you're importing a module that uses Node.js modules which are CommonJS you need to import as
import * as _ from 'lodash';