- A customer support ticketing system
Dependency | Use |
---|---|
Nodejs | It is fast. It is JavaScript run-time environment for executing JavaScript code |
MySQL | An object-relational database management system (ORDBMS) |
Sequelize | A promise-based ORM for Node.js. It helps with data conversion |
Express | A flexible Node.js web application framework |
Dependency | Use |
---|---|
Mocha | JavaScript testing library |
Chai | A BDD/TDD assertion library for node and the browser that can be paired with any javascript testing framework |
Cypress |
This can be found in service-events.md
- git clone
- cd to zhichi
Run
npm install
brew install mysql
In MySQL Shell
-
Connect to mysql server with the root user mysql -uroot
-
Create a user
CREATE USER 'test_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'test_user'@localhost';
- Create a database
CREATE DATABASE db_name;
Update the database/config/config.json file with the details
In your terminal cd to the database folder and run:
- Start app
npm start
or
nodemon start
-
Create the test database
-
Run the tests
npm test