Mirror of github.com/kingomarnajjar/flex-template-web
Find a file
Kimmo Puputti 4e2aedbd14 Move client and server apps to a separate file
index.js is the entrypoint file for the bundle and has to render the
app when running within a browser. Separating the app routing init
etc. to a different file allows us to import both ClientApp and
ServerApp in e.g. tests no matter which env we are in.
2017-01-11 16:01:35 +02:00
docs Move create-react-app readme file to docs 2017-01-04 21:15:02 +02:00
public Change template syntax to work with dev mode as well 2017-01-05 20:56:43 +02:00
server Add documentation 2017-01-09 11:54:38 +02:00
src Move client and server apps to a separate file 2017-01-11 16:01:35 +02:00
.gitignore Init new app with create-react-app 2017-01-04 21:12:15 +02:00
package.json Use the published version of sharetribe-scripts 2017-01-11 15:08:16 +02:00
README.md Remove unnecessary step from requirements 2017-01-11 15:17:31 +02:00
yarn.lock Use the published version of sharetribe-scripts 2017-01-11 15:08:16 +02:00

Sharetribe Starter App

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.

Getting started

Install required tools:

Clone this repository and install dependencies:

yarn

Development

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

npm run dev

Development Server

To develop the server setup, run:

npm 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.

Production Server

npm run build
npm start