Skip to content

fs/react-next-base

Repository files navigation

Build Status

react-next-base

Install dependencies:

Run yarn

Setup environment for development:

Create .env file with followed data:

API_URL=

Ask for token and key represented above from admin

Development server

  • Run yarn server for a dev server.
  • Open lvh.me:3000.
  • The app will automatically reload if you change any of the source files.

Yarn tasks

  • server - local server on 3000 port by default
  • build - build Next.js
  • test:jest - run Jest tests with autowatch for changes
  • test:e2e - run Cypress tests
  • ci:jest - run Jest in CI without watch
  • ci:e2e - run Cypress in CI with running Next.js server
  • lint:js - run eslint
  • lint:css - run stylelint
  • cy:install - install Cypress
  • cy:open - open Cypress app
  • print-env - run print-env to print environment variables

Staging

The staging area can be found at the following link: https://react-next-base.herokuapp.com/

Useful links

Apollo Client Developer Tools

Deploy

Credits

React Next Base is maintained by Flatstack with the help of our contributors.