zachlevy / physly

A URL shortener for the physical web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phys.ly

Physly is a url shortener specifically designed for the physical web.

http Without SSL on Physical Web

Physly will let you use http URLs with Physical Web beacons. Shorten your http:// URL with Physly and we will give you an https:// URL to use with your Eddystone beacons.

Development

Start Server in Development

$ clear && DEBUG=physly:* npm run local

Start Server in Production

$ npm start

Database

Uses postgres. Must migrate before running $ npm start.

  • Create database manually in $ psql
  • Add in credentials to config/config.json
  • $ sudo npm install -g sequelize-cli
  • $ sudo npm install -g pg
  • $ NODE_ENV=production sequelize db:migrate
  • $ npm run seed (Optional)

Deployment

Run Server

$ pm2 start npm -- start

Update Server

$ git pull origin master $ pm2 restart npm

HTTPS with letsencrypt

Renewing must be done manually. Make sure to redirect http to https in the prompt.

$ cd /opt/letsencrypt/
$ ./letsencrypt-auto --renew-by-default

About

A URL shortener for the physical web.


Languages

Language:HTML 51.4%Language:JavaScript 29.1%Language:CSS 19.5%