Coder Social home page Coder Social logo

acgtweet-go's Introduction

Acgtweet

Requirements

  • Postgress
  • Google app engine SDK.
  • mysql brew install mysql unset TMPDIR mysql_install_db --verbose --user=whoami --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql
  • To use psql acgtweet on the command line:
    echo 'export PATH="/Applications/Postgres.app/Contents/Versions/9.4/bin:$PATH"' >> ~/.bash_profile

Installation

  1. All packages will automatically download (are already downloaded?) with the exception of the following:
  • go get github.com/go-sql-driver/mysql

Development

  1. Start mysql mysql.server start
  2. To run the local environment goapp serve hello.go
  • This will start a local server running at localhost:8080
  • Will watch files and auto recompile.
  • Note that there is no need for a main() because we use the google app engine. TODO: To make the code more portable we could include a main which would call hello.go.

Deployment

  1. To upload to google app engine: appcfg.py -A acgtweet -V v1 update ./ (goapp deploy may also work if your pc is setup...)

Mysql

  • Connect mysql -u root -p (password==password).
  • Create user CREATE USER 'user'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON * . * TO 'user'@'localhost'; Reload privileges FLUSH PRIVILEGES;
  • connect acgtweet

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.