# tantan-httpserver **Repository Path**: jason_543446988/tantan-httpserver ## Basic Information - **Project Name**: tantan-httpserver - **Description**: No description available - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2017-10-05 - **Last Updated**: 2024-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Tantan Back-End Developer Test ## Requirements * Go programming language (tested on v1.5.3) * Go dependent packages: ``` go get github.com/gorilla/mux go get gopkg.in/pg.v3 ``` * PostgreSQL ## Deployment * Download source files from this repo to you $GOPATH/src folder. ``` cd $GOPATH/src mkdir tantan git clone https://github.com/kissghosts/tantan-httpserver tantan ``` * Build the tantan service: ``` go install tantan ``` * Edit your conf.json file based on your environment, and copy it to $GOPATH/bin/ * Prepare database environment by running [create-tables.sql](https://github.com/kissghosts/tantan-httpserver/blob/master/sql/create-tables.sql) in the sql folder. This sql script helps to create 2 tables for required task. * Now the restful server is ready to run :) ``` cd $GOBIN/ sudo ./tantan ```