API for Orderking mobile and web application.
- Node.js version v10.6.3 or above.
- Docker 19.03.2 or above.
- Install node modules.
$ npm install
- Run build
$ npm run build
- Run docker script to create containers.
$ docker-compose up -d
(The first time will took some time since it download images)
- Migrate.
$ npm run migrate
(continue from the above step)
- Run the application.
$ npm start
To see the application: http://localhost:3000/
To see the database: http://localhost:8080/
(all informations to access adminer is in src/datasources/db.datasource.json)
-
To stop the server press [ctrl+c].
-
Stop docker containers. (Stopping the container will clear every data so if you want to run again you have to run the second command in prerequisite again.)
$ docker-compose down
- Piyawat Setthitikun
- Natawat Kwanpoom