Code Monkey home page Code Monkey logo

boilerplate-next-js's Introduction

Simple next.js boilerplate for React SSR Applications

Settings for launch

  1. Install package manager yarn. npm install -g yarn
  2. Run the command in the console yarn install
  3. Run the command in the console yarn build
  4. Run the command in the console yarn dev
  5. Open the project in browser

Main command

precommit - base command wich combine yarn fix, yarn test and git add
lint:js - check correct js code
lint:css - check correct css code
lint - base command wich combine lint:js and lint:css
fix:js - formatting your js code
fix:css - formatting your css code
fix - base command wich combine fix:js and fix:css
flow - check correct types via flow
dev - command to start development server
start - command to start production server
test - run all unit tests
test:report - generate report about tests
build - build project
build:analyze - analyze your bundel project
build:docker - build docker bundle

For example yarn start - launch server

Main libraries

  • next.js
  • express.js
  • react
  • react-dom
  • next-routes
  • redux
  • redux-saga
  • next-redux-saga
  • reselect
  • immutable
  • next-i18next
  • flow.js
  • postcss
  • babel
  • dotenv
  • prettier
  • eslint
  • stylelint
  • Jest
  • Enzyme
  • Docker

Caveats

Project has problems with meta tags because of next.js updated with bugs.
The following pull requests were made:
1. wait for it to merge vercel/next.js#17770 (Meta tags bug)
2. next-i18next warning on 404 page i18next/next-i18next#79 (comment)
3. don't insert initialState to createStore(reducer, **initialState**, enhancers). It makes a warning kirill-konshin/next-redux-wrapper#202 (comment)

boilerplate-next-js's People

Contributors

alexander2317 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

digidigiblez

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.