https://github.com/captaincodeman/prpl-server-example
Example project to demonstrate prpl-server-go
https://github.com/captaincodeman/prpl-server-example
Last synced: 11 months ago
JSON representation
Example project to demonstrate prpl-server-go
- Host: GitHub
- URL: https://github.com/captaincodeman/prpl-server-example
- Owner: CaptainCodeman
- Created: 2017-08-07T18:02:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T22:40:29.000Z (about 3 years ago)
- Last Synced: 2025-01-08T14:15:28.506Z (about 1 year ago)
- Language: HTML
- Size: 125 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PRPL server example
A basic Polymer Starter Kit with a few slight optimizations to test the [prpl-server](https://github.com/CaptainCodeman/prpl-server-go)
## Requirements
* Polymer-cli
* AppEngine SDK for Go
* PRPL-Server-Go
go get -i github.com/captaincodeman/prpl-server-go
## Usage
First build the client side files
polymer build
### Symlink build folder to server
From server folder, run:
ln -s ../build static
### Generate app.yaml
Generate prpl-server config:
prpl-config --root static \
--config polymer.json \
--static-version 20170815 \
--project-id captain-codeman \
--project-service prpl \
--project-version example \
--template app.yaml.tmpl > app.yaml
### Run
From server folder, run:
goapp serve
Visit http://localhost:8080
NOTE: No http/2 server push happens but the http Link headers should be added to the responses.
### Deploy
From server folder, run:
goapp deploy .
NOTE: you won't be able to deploy unless you change the project id to your own. Alternatively, you can remove these and use the `gcloud` command (see server rep for details)
### Standalone
The prpl-server can also be run standalone:
prpl-server --root static --config static/polymer.json