Git Product home page Git Product logo

next-express-redux-i18n's Introduction

next-express-redux-i18n

features

  • next.js
  • express
  • i18next
  • redux
  • es6 for server code
  • eslint
  • jwt
  • jest && visual test

run

git clone xxx
cd xxx
yarn
yarn dev

open http://localhost:3000

测试 test

  • unit 单元测试 code
  • react snap 渲染html代码对比测试 code
  • visual 显示截图对比测试 code
  • functional 功能性测试 code
yarn test

显示测试在第一次运行时只会生成对应截图,不进行比对

visual test will only generate screenshots for the first time

in tests/launch.json, you can add other puppeteer launch options refer https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions

tests/launch.json中, 你可以给添加更多的启动参数,参考 https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions

{
  "executablePath":"C:\\Users\\josh\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe",
}

and if you are using root , a launch config is needed, launch.json | 如果你使用root账号还需要配置launch参数

{
  "args": ["--no-sandbox"]
}

CI/CD/DEVOPS

如果你使用docker cloud,那么只需要fork本仓库后关联到docker cloud的仓库即可

if you are using docker cloud, then the only thing you need to do is fork this repo and then connect to your docker cloud repo

postor/nextjs-cd 就是fork之后通过docker cloud构建且通过测试的例子,你可以使用docker cloud的服务启动,也可以直接使用docker run命令来启动它

postor/nextjs-cd is an example built and tested by docker cloud, you can create service on docker cloud, also you can use docker run

docker run -p80:80 -t postor/nextjs-cd

next-express-redux-i18n's People

Contributors

postor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.