Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 772 Bytes

README.md

File metadata and controls

60 lines (40 loc) · 772 Bytes

React Bucket List (Containerless)

Requirements

  • Postgres
  • Node
  • Yarn

Install

  1. Install node modules:
cd api && yarn
cd ..
cd app && yarn
cd ..
  1. Create a psql user:
  • username: myappuser
  • password: myapppassword
sudo -u postgres bash -c "psql -c \"CREATE USER myappuser WITH PASSWORD 'myapppassword';\""
  1. Create a psql database and assign it to our user:
  • db: myappdb
  • owner: myappuser
sudo -u postgres bash -c "psql -c \"CREATE DATABASE myappdb WITH OWNER myappuser;\""
  1. Run the migrations:
cd api && yarn sequelize db:migrate 
yarn sequelize db:seed:all

Dev

  1. Run the API
cd api && yarn start:dev
  1. Run the APP
cd app && yarn start

Visit localhost:3000