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/cliClone repository:
git clone https://github.com/BinaryStudioAcademy/bsa-2018-kudypoditys.git
cd bsa-2018-kudypoditysInstall dependencies:
yarn installTo run the client in a dev mode (file changes will be watched) execute the following command:
yarn start-clientIt 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-apiThe server will listen to http://localhost:5000/
To build and deploy the whole application locally do this:
yarn startFiles change will not trigger application restart.
To run your storybook, type:
yarn storybookTo run elasticsearch you need to perform the following post queries in the postman:
http://127.0.0.1:5000/elastic/delete_allhttp://127.0.0.1:5000/elastic/index/init_testhttp://127.0.0.1:5000/elastic/index/add_testSequelize migration:
yarn sequelize db:migrateyarn sequelize db:migrate:undoIt's recommened that you install the following Chrome extensions: