Skip to content
forked from EugeneN/twic2

Twic2 is an experiment in teaching Haskell and architecture by writing new frontend for Twic1.

Notifications You must be signed in to change notification settings

gitter-badger/twic2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Twic2 is an experiment in teaching Haskell and architecture by writing new frontend for Twic1.

Step by step instructions

First time only

  1. Install Stack

Follow instructions here: https://docs.haskellstack.org/en/stable/install_and_upgrade/

  1. Install node-7.4.0

hint: you can use nvm (https://github.com/creationix/nvm)

  1. Clone
$ git clone https://github.com/EugeneN/twic2.git
$ cd twic2
  1. Setup
$ make setup

note: this takes a long time

  1. Configure

Follow instructions here: https://github.com/EugeneN/twic/wiki/Quick-start#how-to-configure-and-run-twic

Every time

  1. Build
$ make frontend
$ make backend
  1. Run
$ make run

Default browser will open with twic UI. In case you happen to use poorly configured desktop environment open http://localhost:3000 manually.


Next steps

The goal is to write new UI for twic. For this we must discuss the architecture for the frontend (UI) application, implementation details and visual design/UX. More details on original twic design are here: https://github.com/EugeneN/twic/wiki/About

The architecture will not be Elm/React-like one obviously. In general this should be a standalone single page application with support for offline work. The app source should be served by the backend, and once initialized in a browser it should connect to the backend streaming API using websockets.

The app will consist of several independent components - a global feed, individual tweet feed, new tweet, retweet, reply components, search, notifications, private messages.

These business tasks influence implementation details - namely, implementation must provide a way to work with standalone isolated incapsulated composable components. There are few candidate libraries for this task, which provide different levels of abstractions.

Visual design and UX should be similar to twic1 one's, with the difference that it should not use right click as the main and only input method.

About

Twic2 is an experiment in teaching Haskell and architecture by writing new frontend for Twic1.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 96.3%
  • JavaScript 2.9%
  • Makefile 0.8%