GithubHelp home page GithubHelp logo

satnami / publish.li Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 5.0 242 KB

A simple publishing site like medium.com or telegra.ph. Does not require signing up or logging in.

Home Page: https://publish.li/

License: GNU Affero General Public License v3.0

Makefile 0.83% Go 55.34% CSS 0.42% JavaScript 15.24% HTML 28.16%

publish.li's Introduction

publish.li

"Publish Your Articles Quickly and Easily."

A simple publishing site much like Medium or telegra.ph. No need to sign up or log in - just type your content and hit publish!

To edit, you will need the Unique ID shown at the top of the page.

Please see alternatives to publish.li.

Deploying to your Own Server

This project uses the excellent gb as it's build tool. Here's a quickstart:

  1. clone the repo, with git clone [email protected]:appsattic/publish.li.git
  2. run gb build in the project root
  3. run ./bin/publish in the project root

When you run it, you must provide two environment variables:

  • PORT - the local port you want to listen on, e.g. 8000
  • BASE_URL - how your server looks from the outside world (e.g. https://publish.li or http://localhost:8000)

Run the ./bin/publish executable from the project root, so that the program can load up the templates and serve the static pages. It outputs to both STDIN and STDERR, so it's up to you to redirect those where appropriate.

You might use a command like BASE_URL=http://localhost:8080 PORT=8080 ./bin/publish in development.

The DataStore

Since publish.li uses the BoltDB embedded datastore, this project won't run on PaaS solutions like Heroku or OpenShift. There are very few operations which use the datastore (essentially get and put) so adding another backend such as MongoDB or Postgres should be pretty easy. The filesystem would also be easy for self-hosted on your own server but would have the same problems as the BoltDB backend.

Once anyone shows interest in another backend, we'll do a small refactor to use an interface in the application instead of a concrete type. Until then though, let's just leave it as-is.

Author

Andrew Chilton, @andychilton.

For AppsAttic, @AppsAttic.

License

This project is free software and can be forked, downloaded, used, and shared.

AGPLv3.

(Ends)

publish.li's People

Contributors

chilts avatar

Stargazers

 avatar  avatar Petrov Egor avatar

Watchers

James Cloos avatar Mhd Sami Al Mouhtaseb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.