1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-25 13:51:45 +03:00
guide/front-ps
Jens Krause 28eb2ee6f2
Generate PS types of API endpoints (#199)
by using `purescript-bridge`.

- Extract content of `Guide.Api` into `Guide.Api.*` modules.
- Add custom client types to simplify bridging types from HS to PS.
2017-09-01 22:13:16 +02:00
..
client Add Pux example app for cat-overview (#193) 2017-08-27 22:22:13 +02:00
common Generate PS types of API endpoints (#199) 2017-09-01 22:13:16 +02:00
server Add Pux example app for cat-overview (#193) 2017-08-27 22:22:13 +02:00
.gitignore Generate PS types of API endpoints (#199) 2017-09-01 22:13:16 +02:00
bower.json Fix: Remove purescript-smolder from resolutions 2017-09-01 22:11:10 +02:00
package.json Extract pulp scripts, which might be deprecated 2017-08-27 22:20:55 +02:00
README.md Generate PS types of API endpoints (#199) 2017-09-01 22:13:16 +02:00
webpack.config.client.js Build server-side by webpack (#193) 2017-08-27 21:28:38 +02:00
webpack.config.common.js Build server-side by webpack (#193) 2017-08-27 21:28:38 +02:00
webpack.config.server.js Build server-side by webpack (#193) 2017-08-27 21:28:38 +02:00
yarn.lock Record the purescript-smolder version we use 2017-08-31 17:59:06 +03:00

[WIP] Guide's front-end

Requirements

Installation

  1. Get all sources:
git clone git@github.com:aelve/guide.git
cd guide
git checkout front-ps-next
  1. Get data of guide-database
./official.sh
  1. Build back-end API
./b
  1. Build PureScript types of Guide's Api
stack exec guide-hs2ps
  1. Install front-end dependencies
cd front-ps
yarn

or by using npm:

cd front-ps
npm i
  1. Build Express server
yarn build:server

or by using npms:

npm run build:server
  1. Build pages (e.g. category-overview or category-detail)
yarn build:client

or by using npm:

npm run build:client

Run

  1. Run back-end
stack exec guide
  1. Run front-end
yarn start

or by using npm:

npm start

Open http://localhost:3333.