Mirror of github.com/kingomarnajjar/flex-template-web
Find a file
2017-01-20 15:13:27 +02:00
docs Add test documentation 2017-01-12 13:08:19 +02:00
public Refactoring code and improving documentation 2017-01-20 15:07:15 +02:00
server Refactoring code and improving documentation 2017-01-20 15:07:15 +02:00
src Renaming and refactoring initial ducks and tests files 2017-01-20 15:13:27 +02:00
.gitignore Init new app with create-react-app 2017-01-04 21:12:15 +02:00
circle.yml Use --runInBand flag for Jest to improve performance in Circle CI 2017-01-13 09:26:45 +02:00
package.json Refactoring code and improving documentation 2017-01-20 15:07:15 +02:00
README.md Add Circle CI status badge 2017-01-17 09:44:25 +02:00
yarn.lock Refactoring code and improving documentation 2017-01-20 15:07:15 +02:00

Sharetribe Starter App

CircleCI

This is a template application for a Sharetribe marketplace that can be extended and customised. It is based on an application bootstrapped with create-react-app with some additions, namely server side rendering and a custom CSS setup.

Documentation

Documentation can be found in the docs directory.

Getting started

Install required tools:

Clone this repository and install dependencies:

yarn install

Development

To develop the application and to see changes live, start the frontend development server:

yarn run dev

Development Server

To develop the server setup, run:

yarn run dev-server

This runs the frontend production build and starts the Express.js server in server/index.js that renders the application routes in the server. The server is automatically restarted when there are changes in the server/ directory.

Not that this server does not pick up changes in the frontend application code.

Tests

To start the test watcher, run

yarn test

See more in the testing documentation.

Deployment

The master branch is automatically deployed to Heroku. If you want to deploy a feature branch, setup the sharetribe-starter-app Heroku app and push the feature branch:

git push heroku my-feature-branch:master