Skip to content

wearesho-team/wearesho-site

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wearesho Studio Website

codecov

Production Production Build Status

wearesho.com

Stack

Dev

Webpack, Typescript (+tslint), React (+react-router), Babel

Test

Mocha, CodeceptJS, Selenium

Deployment

Docker, Nginx, NodeJS

Docker

Building docker container

docker build -t wearesho/wearesho-site . --rm

Running docker image

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.

Running docker compose (with backend)

docker-compose build
docker-compose up

Running tests

To run all tests just use npm test

E2E Tests (CodeceptJS)

Run Selenium server (requires Java):

npm run selenium

Run tests:

npm run e2e

Unit Tests (Mocha)

npm run unit

Deployment

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

Build

Development server

Will be served at http://localhost:8089.

npm run dev

Development build.

Just create files in web/ folder with development settings (without compression and with sourcemaps).

npm run preview

Production build

Must be run before deployment. Build all files to web/ directory.

npm run build

For building with .htaccess file:

APACHE=1 npm run build

Contributors

License

MIT