- PostgreSQL 9.6 or later
- Node.js v10.15.1 LTS or later
- Grunt 1.0.0 or later
- Chrome
- Run
./setup.shto install dependencies. - Run
./init.shto initialize the database. It createsnotesuser, andnotes_developmentandnotes_testdatabases on PostgreSQL running locally. - Run
grunt initto create users to login the Web app.
-
Run
grunt runServerto run the server. -
Visit http://localhost:7428/ with your browser. You can login using the information below.
- Username: user1
- Password: password1
You can also login as user2/password2 and user3/password3.
- Run
grunt testto test the code. - Run
grunt coverageto test the code with code coverage. Check./coveragedirectory to see the coverage.
You need Chrome to run the unit tests.
- etc/ - Configurations
- public/ - Client
- src/ - Client code
- test/ - Client test
- src/ - Server code
- api/ - Express router for APIs
- app/ - Express router for app
- domain/ - Domain classes implementing business logic
- model/ - Model classes based on Sequelize
- router/ - Utilities for routers.
- test/ - Server test
- tools/ - Some tools