Giter Club home page Giter Club logo

hooligram-server's Introduction

Hooligram Server

Build Status

System setup (Ubuntu 18)

Go

  1. sudo apt install wget git
  2. wget -q https://storage.googleapis.com/golang/getgo/installer_linux
  3. chmod +x installer_linux
  4. ./installer_linux
  5. go version
  6. go get github.com/hooligram/hooligram-server
  7. cd ~/go/src/github.com/hooligram/hooligram-server
  8. export PORT=8080
  9. export TWILIO_API_KEY=<twilio-verify-api-key> - Verify
  10. export MYSQL_DB_NAME=hooligram
  11. export MYSQL_USERNAME=<username>
  12. export MYSQL_PASSWORD=<password>
  13. govendor build
  14. ./hooligram-server

MySQL DB

  1. sudo apt update
  2. sudo apt install mysql-server
  3. sudo systemctl status mysql - Make sure the Active status is active (running)
  4. sudo mysql
  5. CREATE USER '<username>'@'localhost' IDENTIFIED BY '<password>';
  6. GRANT ALL PRIVILEGES ON hooligram.* TO '<username>'@'localhost' IDENTIFIED BY '<password>';
  7. CREATE DATABASE hooligram;

Deployment

AWS EC2

  1. Setup AWS EC2 instance (Ubuntu 18)
  2. Copy hooligram-developer.pem to project root
  3. export IP_ADDR=<aws-ec2-ip-address>
  4. ./deploy.sh

Heroku

  1. git push heroku master

Logging

  1. journalctl --pager-end --unit hooligram.service

Test

  1. go test ./...

hooligram-server's People

Contributors

imranariffin avatar

Watchers

James Cloos 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.