Make sure you have nodejs 10.7.x
and npm 6.2.x
.
Install the following packages globally (prepend sudo
if using Unix system):
npm i -g yarn
npm i -g nodemon
npm i -g @storybook/cli
Clone repository:
git clone https://github.com/BinaryStudioAcademy/bsa-2018-kudypoditys.git
cd bsa-2018-kudypoditys
Install dependencies:
yarn install
To run the client in a dev mode (file changes will be watched) execute the following command:
yarn start-client
It will start the client at http://localhost:3000/ (pointing to the local api server)
To run the api server locally, execute this command:
yarn start-api
The server will listen to http://localhost:5000/
To build and deploy the whole application locally do this:
yarn start
Files change will not trigger application restart.
To run your storybook, type:
yarn storybook
To run elasticsearch you need to perform the following post queries in the postman:
http://127.0.0.1:5000/elastic/delete_all
http://127.0.0.1:5000/elastic/index/init_test
http://127.0.0.1:5000/elastic/index/add_test
Sequelize migration:
yarn sequelize db:migrate
yarn sequelize db:migrate:undo
It's recommened that you install the following Chrome extensions: