Webpack, Typescript (+tslint), React (+react-router), Babel
Mocha, CodeceptJS, Selenium
Docker, Nginx, NodeJS
docker build -t wearesho/wearesho-site . --rm
After build:
docker run -p 49161:80 -d wearesho/wearesho-site
then front-end will be available at http://localhost:49110, you can change port (49161) to any value.
docker-compose build
docker-compose up
To run all tests just use npm test
E2E Tests (CodeceptJS)
Run Selenium server (requires Java):
npm run selenium
Run tests:
npm run e2e
npm run unit
You should serve web/
directory in your server after building bundle.
- Nginx: you may use config template
- Apache2: for
.htaccess
generation see Production build section for details
Will be served at http://localhost:8089.
npm run dev
Just create files in web/
folder with development settings (without compression and with sourcemaps).
npm run preview
Must be run before deployment.
Build all files to web/
directory.
npm run build
For building with .htaccess
file:
APACHE=1 npm run build