- Client was bootstrapped with Create React App
- API is GraphQL running on an Express server
- DB is postgreSQL configured via Sequelize
You will need to set the following values:
secrets.js
process.env.GOOGLE_CLIENT_ID=
process.env.GOOGLE_CLIENT_SECRET=
process.env.GOOGLE_CALLBACK=
process.env.APP_URL=
process.env.NODE_ENV=
.env
REACT_APP_API_URL=
In the project directory, you can run:
Builds app and db docker images and starts containers accessible through http://localhost:8080
- Installs app depencies, required for development
- Launches the test runner
- Builds the client for production to the
build
folder
DB must be set with process.env.DATABASE_URL or local db (named package.json[name]) on 5432
- Starts both the server and client in development mode via "yarn concurrently"
- Nodemon watches the server and react-scripts watches the front-end, should force restart/reloads on file changes
- Open http://localhost:3000 to view client in the browser
- API requests are proxied to server running on https://localhost:8080
- Starts the server only, which serves the api and a production client build localhost:8080 ("yarn build" must have been run previously)