This project use Next.js with redux ecosystem, and was intended to help users get up and running quickly.
You can create a new project based on react-next-starter
by doing the following:
$ git clone https://github.com/leon3s/react-next-starter.git <my-project-name>
$ cd <my-project-name>
When that's done, install the project dependencies. It is recommended that you use Yarn for deterministic dependency management, but npm install
will suffice.
$ yarn install # Install project dependencies (or `npm install`)
After completing the installation step, you're ready to start the project!
$ yarn run development # Start the development server (or `npm run development`)
While developing, you will probably rely mostly on yarn run development
; however, there are additional scripts at your disposal:
yarn <script> |
Description |
---|---|
development |
Serves your app at localhost:8080 in development mode |
production |
Serves your app at localhost:8080 in production mode |
build |
Builds the application to ./next |
build:production |
Builds the application to ./next in production mode |
├── .next # All build-related code
├── actions # Redux actions directory
├── components # React Components directory
├── containers # React Containers directory
├── pages # Next.js pages directory
| ├── index.js # First page viewed by user
├── reducers # Redux reducers directory
├── static # Static files exposed by your server
├── styles # Styles directory in scss
├── utils # Your utils directory
└── server.js # Next.js server