Node.js/Express.js based API for ChatApp
- Node
- Mysql
- SocketIO
Update your environment, datasource, as well as mysql config You will need to fill the credentials for mysql
npm install
- Uncommend the mysql and adminer services in docker-compose.yml
- Comment the mysql and adminer services in docker-compose.yml
- Commend the mysql and adminer services in docker-compose.yml
- Uncomment the mysql and adminer services in docker-compose.yml
docker-compose up --build
make sure update your environment into docker.
npm run typeorm migration:create -n <fineName>
npm run typeorm migration:run
npm run typeorm migration:revert
Update your env into file .env.development and docker.env
- npm install
- docker-compose up --build
- npm run typeorm migration:run
- npm run dev
npm run build
npm run start
The project contains 2 categories of tests. To run all tests with one command:
npm run test
npm run test:unit
Test a single thing at a time. Unit tests should be fast, should not rely on external dependencies, and should be run regularly (during automated builds).
npm run test:integration
Test the interactions between modules/services. Such tests can test integrations amongst internal services as well as integrations with external services.
url: localhost:8080
assess to adminer with user and password in docker.env file