- Clone this repo. Run:
git clone git@github.com:taptima/skeleton-front-end.git <my-app-name>
- Make sure you have Node.js (^16.13.0) and Yarn (^1.22.0) installed.
- Install the dependencies. Run:
yarn
- Set up your new project using CLI. Run and follow the instructions:
yarn plop
- Install the dependencies. Run:
yarn
- Set up environment variables. See list of pre-configured environment
variables bellow. Run:
Note:
yarn configure
.env.localoverwrite.env - Start the development server (see additional info about this feature). Run:
yarn dev
- Open
http://localhost:3000in your browser.
- Install the dependencies. Run:
yarn
- Make the production build. Run:
yarn build
- Start server (see additional info about this feature). Run:
yarn start
NEXT_PUBLIC_API_BASE_URL— URL used for any API calls.LOCAL_API_BASE_URL- URL for API calls on server side that used to avoid request roundtrip and DNS resolving.
Example:http://localhost:8000, or with docker networkhttp://apiNEXT_PUBLIC_ASSETS_VERSION— version of public assets. Can be used to reset browser cache of any assets.NEXT_PUBLIC_SENTRY_DSN— used to log errors to Sentry requires.sentryclirc.
Sentry
- Add NEXT_PUBLIC_SENTRY_DSN to
.envfile sentry-cli login— to login through browser or enter auth token..sentryclircfile will be created in your home directory, you can move it to project directory.- Fill
defaults.projectfield insentry.propertiesfile