To run this project on your machine you should have installed:
node.js
npm
yarn
mongoDB
- Add
.env
in the root of./back
directory with:
PORT=8000
MONGO_DB=mongodb://localhost:27017/space-pizza
JWT_SIGNATURE=PassWord
- Open the terminal with start point in the root of app and type
cd ./back
- Type
yarn install
- Then
yarn run sturt
- To populate DB type
yarn run seed
- To make build, type
yarn run build
- To run build
node ./dist/bundle.js
- Add
.env
in the root of./front
directory with:
NODE_ENV=dev
REACT_APP_API_SERVER=http://localhost:8000
- Open the terminal with start point in the root of app and type
cd ./front
- Type
yarn install
- Then
yarn run sturt
- To make build, type
yarn run build
- The build of front-end placed into
./build