• Stars
    star
    246
  • Rank 164,726 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Learn how to touch type from the comfort of your terminal and challenge your friends for a match 🎈 πŸ˜„.

Practice touch typing and compete with your friends all from the comfort of your shell and become a typing ninja πŸ’₯.

Build Status Codacy Badge

But this has already been done. Why should I use this client?

Because most other shell clients don't offer the features that we do

Features

  • Practice mode (offline mode)
  • User stats (words per minute, time taken)
  • Online mode (have a type-race by spawning up a server and sharing it with your friends)
  • Ask for a rematch after the race ends (online mode)
  • Can view the top 10 Highscores in online mode

Installation

run npm i --global typeracer-cli from your command line

Possible Errors

When you have installed this tool some times later you could find some error when you start typerace.

This may be because new update might have been rolled out and you have to update to latest version.

How to update

Its same as installation just run npm i --global typeracer-cli from your command line

Now even after that if you see any errors, follow the below steps

  • find .nvm folder in your home directory.

  • cd to .nvm/versions/node/${your node version}/bin and delete typerace file

  • cd to .nvm/versions/node/${your node version}/lib/node_modules and delete typeracer-cli folder

  • run npm - -global typeracer-cli

These steps should resolve the isssue. If it does not please open an isssue.

Usage

run typerace or typerace -h to its usage

Output

Usage: typerace [options] [command]

  Options:

    -h, --help          output usage information

  Commands:

    practice|p          Start typeracer
    online|o [options]  Start game in online mode

Practice mode

  • typerace p to start practice mode.

Preview of practice mode

practice

Online mode

Prevew of online mode

online

  • typerace o -f to start online mode which will prompt a question

Are you starting server for race (y/N) ?

Now 2 cases are there

  • If yes

    • You will share Room to join for race, Number of racers, Number(sort of password)
    • All the above will be prompted if you select yes and all of your friends should fill them out same.
  • If no

    • Ask for Room to join for race, Number of racers, Number(sort of password) from your friend who created a private room to race.

Highscores

To view the top 10 Highscores in online mode.

run typerace o -s

Enjoy πŸ”₯

Contributing

If you think of a feature enhancement or find a bug kindly raise an issue. We also welcome you to work on your issues by just commenting down on them with "I would like to work on this". All contributions are appreciated.

General Setup

  • fork the repository

  • clone your forked repository

  • set the upstream remote

  • cd to folder and run npm install

  • create a .env file in root directory and put following in it

DATABASE=your mongoDB url
  • run npm start

But I don't know how to code, is there any other way I can contribute?

Yes, ofcourse you can we need lots of paragraphs so that our users don't get bored by typing out the same text over and over again. To add a paragraph follow these steps:

  • Add paragraphs in paragraphs/para.json
  • run npm test
  • Important: all tests should pass as you would get a test failure for duplicate paragraphs.
  • Find same paragraphs then run npm test
  • If all tests pass locally then Open a PR

Support Us

We are a bunch of undergrads passionate about software development looking to make cool stuff. A little motivation and support helps us a lot. If you like this nifty hack you can support us by doing any (or all πŸ˜‰ ) of the following:

  • ⬆️ Upvote on producthunt producthunt
  • ⭐ Star us on Github and make us trend so that other people can know about our project.
  • πŸ‘ Clap for us on Medium
  • Tweet about us
  • Share this on Facebook
  • Install it and increase our download count on npm
  • Donation (Coming Soon)

Contributors

More Repositories

1

p-society.github.io

Official site of p-society (OLD)
HTML
31
star
2

goals

An ambitious bucket list of things we want to achieve as a community.
20
star
3

slackcontestwatcherbot

Slack bot to quickly find info on the contests across websites like CodeChef, Codeforces, Topcoder and many more.
Python
13
star
4

decks

Slides, code samples and guides used during various psoc sessions
C++
12
star
5

papers-we-love-bbsr

Papers-we-love bhubaneswar chapter
12
star
6

intro-to-open-source-2017

This is a test repository for newcomers to make their own PR
JavaScript
9
star
7

winter-of-code-2017

9
star
8

Online_Rosei

Online rosei for IIIT-BBSR 🎈. This repo has been deprecated
TypeScript
5
star
9

oss-session

4
star
10

Online_Rosei_FrontEnd

This is front End for https://github.com/p-society/Online_Rosei πŸ˜„
TypeScript
4
star
11

TheDevGuide

A list of resources for newbies interested in software development
4
star
12

gc-server

Stay updated in real-time and engage with the thrill of the game like never before.[WIP]
TypeScript
3
star
13

Git-Sesh

C
2
star
14

raag

CLI Tool for Offline Music Playback, Streaming with Local P2P Support.
2
star
15

psoc-website-new

Programming Society (IIIT-Bh) official website
SCSS
2
star
16

gc-client

Source tree of web and app interfaces for grand championship[WIP;Look Away!]
C++
2
star
17

working-with-github-and-git

A repository for the session on Jan 7, 2020, where juniors will make a pull request to practice working with open-source
Java
2
star
18

artwork

Repository to hold all the logos and posters for different events
1
star
19

members

1
star
20

Android-Hands-On

This repository contains a collection of Android projects created by participants of the session.
Kotlin
1
star
21

meta

Related to the development πŸ’» practices to be followed by the org.
1
star
22

www

What Went Wrong
1
star
23

Initial-OSS

A welcoming repository designed to help individuals take their first steps in open-source software development.[WIP]
TypeScript
1
star