Assuming you have installed the following on your device:
- Node
- Postgresql
Create a role:
psql postgres << EOF
CREATE ROLE pguser WITH LOGIN PASSWORD 'password';
ALTER ROLE pguser CREATEDB;
EOF
Log in with the new role and create a database:
psql -d postgres -U pguser << EOF
CREATE DATABASE todoapp;
EOF
yarn global add sequelize
- Go to
./backend
directory - Run
yarn
ornpm install
- Run
sequelize db:migrate
to migrate Todos and Subtasks schema - (Optional) Run
sequelize db:seed:all
to add demo tasks - Run
yarn dev
It starts http server on 3080 port if everything go smoothly.
- Go to
./frontend
directory - Run
yarn
ornpm install
- Run
yarn start