Mirror of github.com/kingomarnajjar/flex-template-web
Find a file
Kimmo Puputti bc4dbeee7b Fix error when data was being loaded while logout was in progress
The Routes component skips calling the possible loadData of a page if
the logout is in progress. However, the logoutSuccess and the
clearCurrentUser actions were dispatched in an order that cleared the
user from the store before the logout was marked done.

The fix was to order the actions so that the logout is marked done
first and then all the cleanup is done.

A better solution in the future would be to batch actions so that
extra render loops are avoided when dispatching multiple actions at
once.
2017-10-27 09:16:56 +03:00
docs Add docs for analytics 2017-10-26 12:52:08 +03:00
public Inject Google Analytics when tracker ID is in the environment 2017-10-25 13:18:12 +03:00
server Fix configureStore params 2017-10-26 14:48:42 +03:00
src Fix error when data was being loaded while logout was in progress 2017-10-27 09:16:56 +03:00
.gitignore Init new app with create-react-app 2017-01-04 21:12:15 +02:00
.nsprc Ignore mime vulnerability warning since it is only used in dev 2017-10-13 10:49:56 +03:00
.prettierignore Update Prettier, enable CI integration 2017-10-13 10:09:20 +03:00
circle.yml Run security audit with nsp in CI to warn about vulnerable deps 2017-10-13 10:33:34 +03:00
heroku-copy-ssh-key-from-env.sh Copy GitHub SSH key in Heroku to access private repositories 2017-02-24 10:42:53 +02:00
package.json Add sitemap.xml and robots.txt files 2017-10-19 11:07:56 +03:00
README.md Remove extra section from the root README.md 2017-10-13 11:40:55 +03:00
yarn.lock Add sitemap.xml and robots.txt files 2017-10-19 11:07:56 +03: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

Known issues:

  • Adding/changing imports may not be synced properly with ESLint. You may see an error Unable to resolve path to module even though the module existing in right path. Restarting the server doesn't help. To solve the issue, you need to make a change to the file where the error occurs.

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