Mirror of github.com/kingomarnajjar/flex-template-web
Find a file
2018-04-05 15:36:48 +03:00
.circleci Test CI workflows 2018-04-03 14:28:56 +03:00
docs Merge pull request #791 from sharetribe/filter-docs 2018-04-04 15:05:12 +03:00
ext/default-mail-templates Move default mail templates to default directory 2018-03-13 11:35:06 +02:00
public Remove Stripe v2 2018-03-26 15:04:18 +03:00
server Update our CRA fork to 1.1.2 2018-04-05 15:36:48 +03:00
src Add polyfills 2018-04-03 17:05:16 +03:00
.editorconfig Add .editorconfig file and make Prettier use it 2017-12-11 11:27:24 +02:00
.env-template Revert PORT handling to previous behaviour 2018-03-15 22:25:47 +02:00
.env.development Revert PORT handling to previous behaviour 2018-03-15 22:25:47 +02:00
.env.test Revert PORT handling to previous behaviour 2018-03-15 22:25:47 +02:00
.gitignore Harmonize client & server env handling 2018-03-15 14:27:57 +02:00
.nsprc Add nsp exception for hoek vulnerability 2018-02-16 10:47:29 +02:00
.prettierignore Add formatting to markdown files 2017-12-11 10:59:04 +02: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
LICENSE Add Apache-2.0 license 2018-01-08 10:43:58 +02:00
package.json Update our CRA fork to 1.1.2 2018-04-05 15:36:48 +03:00
README.md Revert PORT handling to previous behaviour 2018-03-15 22:25:47 +02:00
yarn.lock Update our CRA fork to 1.1.2 2018-04-05 15:36:48 +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

First, you need to configure Client Id, Google Maps API key and Stripe publishable API key via environment variables. The quickest way to do this is to copy .env-template -> .env, and edit the file to set the three mandatory configuration values.

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.

License

This project is licensed under the terms of the Apache-2.0 license.

See LICENSE