Skip to content

React Bucket List example for Docker-compose tutorial

Notifications You must be signed in to change notification settings

tpucci/react-bucket-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

React Bucket List example for Docker-compose tutorial

Resources

Stars

Watchers

Forks

Packages

No packages published