- Create new directory for your new project. Run (replace
my-app
with any name):mkdir my-app && cd my-app
- Clone this repo. Run:
git clone git@github.com:ekabolotina/skeleton-front-end.git .
- Make sure you have Node.js (^14.15.0) and Yarn (^1.16.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:
yarn configure
- Start the development server (see additional info about this feature). Run:
yarn dev
- Open
http://localhost:3000
in 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_STATIC_API_BASE_URL
— useful for configuring base URL for any API calls.NEXT_STATIC_ASSETS_VERSION
— version of public assets. Can be used to reset browser cache of any assets.NEXT_STATIC_SLACK_API_TOKEN
andNEXT_STATIC_SLACK_API_CHANNEL
— used to log errors to any Slack channel using Slack APIs.