Code Monkey home page Code Monkey logo

mybeir.ut's Introduction

WARNING: This project isn't maintained anymore.

mybeir.ut Build Status

Interactive map of bars, clubs and restaurants in Beirut.

Fork of myberl.in.

Serve locally

$ sudo npm install -g http-server
$ http-server

Note: Front-end errors won't be sent to Sentry. See Monitoring/Alerting.

Run the E2E and unit tests

$ npm install
$ npm run-script karma

Note: Front-end errors won't be sent to Sentry. See Monitoring/Alerting.

Deploy/Update the AWS Route 53 domain

$ sudo pip install awscli
$ aws configure
AWS Access Key ID [None]: ********
AWS Secret Access Key [None]: ********
Default region name [None]: us-east-1
Default output format [None]:
$ ./aws/dns_create.sh
$ ./aws/dns_update.sh

Set up Netlify

We use Netlify to deliver the app over HTTPS. Install the Netlify CLI and authenticate with

$ sudo npm install -g netlify-cli
$ netlify sites # first authentication, creates ~/.netlify/

Create this site on Netlify:

$ netlify create -n mybeir.ut # already done, creates ./.netlify

Enable GitHub continuous deployment:

$ netlify init
? Directory to deploy (blank for current dir): 
? Your build command (middleman build/grunt build/etc): 
Configuring automated deploys for
  repo: AurelienLourot/mybeir.ut
  branch: master
  dir: .
  cmd: N/A
? Looking good? Yes
? GitHub username: AurelienLourot
? GitHub password: ********
Preparing deploy key
Adding deploy key to github repo
Configuring netlify site
Adding webhook to repository
Success! Whenever you push to Github, netlify will build and deploy your site
  http://mybeir-ut.netlify.com

Set the domain name:

$ netlify update -d beirut.myberl.in
Site updated:
  http://beirut.myberl.in

Monitoring/Alerting

Any front-end error is sent to Sentry (except when served on *localhost*). This can be leveraged by loading the webapp regularly from the console or a cronjob:

$ sudo apt-get install phantomjs
$ npm run-script loadsite

In addition to sending any error to Sentry, npm will terminate with a non-null exit value if:

  • the app's initialization times out, or
  • beirut.myberl.in is unreachable.

Documentation

mybeir.ut's People

Contributors

lourot avatar

Stargazers

 avatar

Watchers

 avatar  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.