-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make list of TODO * mod vendor * Reset mistyped falg after race finish * Fix: disable editor on startup * add fixme comment * wip readme * update readme * update notes.md * Fix creating required files on first startup * Update readme how to install * Minor readme fix * mod tidy, vendor * Minor changes to main pkg * Simplify file paths * Minor changes to data pkg * Minor changes to utils, views packages * Add new demo.gif asset
- Loading branch information
Showing
64 changed files
with
10,757 additions
and
3,382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,45 @@ | ||
# termracer | ||
|
||
Practise your typing skills from within your terminal. termracer is inspired by various online typing tutor websites. | ||
|
||
Your goal is to type a given paragraph as fast and accurate as possible, termracer will calculate your typing speed with words per minute and accuracy % metrics. You can also view your progress by viewing the past race results. | ||
The Goal is to type a given paragraph as fast and accurate as possible, termracer will calculate your typing speed with words per minute and accuracy % metrics. You can also view your progress by viewing the past race results. | ||
|
||
For each race, You'll be presented a paragraph randomly picked from a predefined pool of paragraphs. | ||
|
||
![](https://github.com/jan25/termracer/blob/master/assets/example.gif) | ||
![](https://github.com/jan25/termracer/blob/master/assets/demo.gif) | ||
|
||
## Install | ||
|
||
``` | ||
# download and install | ||
$ go get -u github.com/jan25/termracer | ||
# Download and install latest release | ||
# You could use -o flag to put the termracer binary anywhere that is included in $PATH | ||
$ go build -o $GOPATH/bin/termracer github.com/jan25/termracer/cmd | ||
# run application | ||
# Run application | ||
# if $GOPATH/bin is in $PATH | ||
$ termracer | ||
# OR | ||
$ $GOPATH/bin/termracer | ||
$ termracer | ||
# OR use | ||
$ $GOPATH/bin/termracer | ||
``` | ||
|
||
> Current version of termracer can't generate paragraphs and pick an interesting paragraph for a race. We only have one default paragraph that is used for all races. In upcoming versions, termracer will be able to choose a random and interesting paragraphs for you. | ||
## Development | ||
|
||
This application uses go modules. So, you could clone this repo under any | ||
directory and build/test/run. As a helper we have Makefile in this repo, which will allow to build/test/run with single | ||
command. | ||
``` | ||
# Builds executable | ||
$ make build | ||
|
||
# Runs available tests | ||
``` | ||
# Run available tests | ||
$ make test | ||
# Builds and runs executable | ||
# Build and Run executable | ||
$ make run | ||
# Run in debug mode | ||
# Build and Run in debug mode | ||
$ make debug | ||
``` | ||
## Note: The current master is in one single main package with global shared variables. So in-order to seperate concerns the project is in rewrite period, so at end of it we'll have components seperated into nicer modules/packages. Expect the finished rewrite by milestone 0.2.0-alpha scheduled on 01-12-2019 CET(May be delayed) | ||
# Builds executable | ||
$ make build | ||
``` | ||
|
||
The design/features are written in [NOTES.md](https://github.com/jan25/termracer/blob/master/NOTES.md). | ||
The design/features are written in [NOTES.md](https://github.com/jan25/termracer/blob/master/NOTES.md). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.