- Navigate into server directory:
cd server
- Run docker-compose:
docker-compose up
- Create a dump from locale db:
pg_dump -U postgres slack -f dump.sql
- Connect to database in docker:
psql -h localhost -p 3030 -U postgres slack
- Drop current database in docker:
dropdb -h localhost -p 3030 -U postgres slack
- Create new database:
createdb -h localhost -p 3030 -U postgres slack
- Write data from dump into database:
psql -h localhost -p 3030 -U postgres slack < dump.sql
- Navigate into client directory:
cd client
- Install dependencies and start the application:
yarn install yarn start