1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-26 12:42:30 +03:00
guide/front-ps/README.md
2017-12-30 08:15:24 +01:00

80 lines
1.0 KiB
Markdown

# Guide's front-end
## Requirements
* [`Node`](https://nodejs.org/en/)
* [`yarn`](https://yarnpkg.com/lang/en/) (or [npm](https://www.npmjs.com/))
* [`Pulp`](https://github.com/purescript-contrib/pulp)
## Installation
1. Get all sources:
```sh
git clone git@github.com:aelve/guide.git
cd guide
git checkout front-ps-next
```
2. Get data of `guide-database`
```sh
./official.sh
```
3. Build back-end API
```
./b
```
4. Build PureScript types of Guide's Api
```
stack exec guide-hs2ps
```
5. Install front-end dependencies
```sh
cd front-ps
yarn
```
or by using `npm`:
```sh
cd front-ps
npm i
```
5. Build Express server
```sh
yarn build:server
```
or by using `npm`s:
```sh
npm run build:server
```
6. Build pages (e.g. `category-overview` or `category-detail`)
```sh
yarn build:client
```
or by using `npm`:
```sh
npm run build:client
```
## Run
1. Run back-end
```sh
stack exec guide
```
2. Run front-end
```sh
yarn start
```
or by using `npm`:
```sh
npm start
```
Open [`http://localhost:3333`](http://localhost:3333).