Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/padagraph/PadagraphFoldr
clone of HackFoldr for padagraph
https://github.com/padagraph/PadagraphFoldr
Last synced: 3 months ago
JSON representation
clone of HackFoldr for padagraph
- Host: GitHub
- URL: https://github.com/padagraph/PadagraphFoldr
- Owner: padagraph
- Created: 2018-04-22T22:36:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-29T23:54:24.000Z (over 6 years ago)
- Last Synced: 2024-08-02T12:49:57.011Z (6 months ago)
- Language: Scala
- Size: 1.91 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - padagraph/PadagraphFoldr - clone of HackFoldr for padagraph (others)
README
# Introduction
This project is a clone of g0v's Hackfoldr.
It is designed to fit the needs of Padagraph.io an to be more easily customisable.Written in ScalaJS, all the code runs on the client side
# Getting started
All you need to start is [sbt](https://scala-sbt.com)
clone the repository
```
$ git clone [email protected]:padagraph/PadagraphFoldr.git
```go to the root of the repo and run sbt
```
$ cd PadagraphFoldr
$ sbt
```from sbt shell, run `fastOptJS` to build the dev version of the js
Or `fullOptJS` for production.Once the js file is compiled, it will be located in the `target/scala-2.12/` directory.
# Hosting
Set the path in the `index.html` file according to your production setup.
For the routes to be analysed properly, the webserver needs to be configured to serve `index.html` for any subpath of the app (except for static files)
Here is an example of configuration for an nginx server used during development
```
server {
listen 80;
server_name some_name; # (set it in /etc/hosts)
access_log /tmp/access.log;
error_log /tmp/error.log debug;root /PadagraphFoldr/target/scala-2.12;
location / {
# autoindex on;
try_files $uri $uri/ /classes/index.html;
}
}```
TODO: show how to host directly from github pages