Code Monkey home page Code Monkey logo

hermes-2's Introduction

hermes

Social Network for JIIT

Frontend

Setup Dependencies

Run either yarn install or simply yarn to setup dependencies. Visit yarn's official installation guide for installating yarn.

Run Locally

The project already contains a fully-configured webpack-dev-server to run the frontend locally. Simply start it by firing up yarn start and visit localhost:3000 on your browser.

Testing (Yet to be implemented)

yarn test

Linting using ESLint

yarn eslint

Backend

###Install Go Download the archive from https://golang.org/dl/ and extract it into /usr/local, creating a Go tree in /usr/local/go. For example: tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz Add /usr/local/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/profile (for a system-wide installation) or $HOME/.profile: export PATH=$PATH:/usr/local/go/bin Create a directory to contain your workspace, $HOME/work for example, and set the GOPATH environment variable to point to that location. $ export GOPATH=$HOME/work For more Information visit the official installation guide https://golang.org/doc/install

###Install glide The easiest way to install the latest release on Mac or Linux is with the following script: curl https://glide.sh/get | sh On Ubuntu Precise(12.04), Trusty (14.04), Wily (15.10) or Xenial (16.04) sudo add-apt-repository ppa:masterminds/glide && sudo apt-get update sudo apt-get install glide On Mac OS X you can also install the latest release via Homebrew: $ brew install glide

###Install Packages and Dependencies $ glide install

###Install and configure PostgreSQL $ sudo apt-get update $ sudo apt-get install postgresql postgresql-contrib Log in using the postgres account: '$ sudo -i -u postgres Create Superuser: postgres@server:~$ createuser --interactive Output: Enter name of role to add: <yoursuperuser> Shall the new role be a superuser? (y/n) y Now go to db_setup.go and api.go and replace and with respective values. Create a local database for Hermes: 'postgres@server:~$ createdb hermes' For verification you can type psql hermes to check if the database is created.

###Setup Database $ go build db_setup.go $ $GOPATH/<pathtohermes>/db_setup

###Running Server $ go build server.go $ $GOPATH/<pathtohermes>/server visit localhost:1323 on your browser.

###Format using gofmt $ gofmt -w <yourfilename.go>

hermes-2's People

Contributors

526avijitgupta avatar ryzokuken avatar wimpykid26 avatar yashmehrotra 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.