GithubHelp home page GithubHelp logo

clarkezone / retwis-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gsempe/retwis-go

0.0 1.0 0.0 271 KB

A Twitter-toy clone written in Go and Redis

License: MIT License

Go 87.01% CSS 12.99%

retwis-go's Introduction

retwis-go

What is it

retwis-go is the port to Go of the redis tutorial Twitter clone
You can see it in action at http://retwis.sempe.net

How to contribute

retwis-go is a direct port without almost no improvements done on the go. I have done it as a way to practice Golang and redis. If you have the same goals and search projects to practice, just fork it and open pull requests. There is lot of things that can be done:

  • protect users passwords. They are not encrypted in the database
  • Many errors messages should not be shown to the retwis user
  • User profile is very poor. For instance there is no way to know who follows who
  • There is no reply feature, no retweet feature, no favorite feature, etc...

Usage

Set the GOPATH env, like described in the Golang documentation

Install retwis-go:

go get github.com/gsempe/retwis-go

Run retwis-go:

go build
./retwis-go

Note: A redis database must run on the same machine

How it's done

To get it done faster and safer the port uses :

  • redigo Go client for Redis
  • negroni Idiomatic HTTP Middleware for Golang
  • httprouter A high performance HTTP request router that scales well
  • render Go package for easily rendering JSON, XML, and HTML template responses.
  • securecookie Gorilla package that encodes and decodes authenticated and optionally encrypted cookie values.

retwis-go's People

Contributors

gsempe avatar nfo avatar

Watchers

 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.