Skip to content

chrisstephenmiller/boilerplate

Repository files navigation

csm - monorepo web app boilerplate

development:

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:

docker-compose up

Builds app and db docker images and starts containers accessible through http://localhost:8080

yarn

  • Installs app depencies, required for development

yarn test

  • Launches the test runner

yarn build

  • 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

yarn start-dev

  • 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

yarn start-prod

  • Starts the server only, which serves the api and a production client build localhost:8080 ("yarn build" must have been run previously)

About

csm - monorepo web app boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published