Coder Social home page Coder Social logo

jatindersingh93 / word-finder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from domu904/word-finder

0.0 2.0 0.0 3.77 MB

I took every english word (over 200k words) and built a little NodeJS app that will help you find words that contain specific characters.

Ruby 2.05% JavaScript 34.17% CSS 7.02% HTML 56.76%

word-finder's Introduction

##Word Finder (MIT License)

I took every english word (over 200k words) and built a little NodeJS app that will help you find words that contain specific characters.

Additionally, here are instructions to deploy this app to Heroku.

##How to Use

###The underscore

Type a word into the text box with the following pattern:

he__o

And you'll get words such as:

hello
helio

###The question mark

This character is great for games like What's the Phrase (a knock off of Wheel of Fortune)

Type a word into the text box with the following pattern:

st???

and you'll get words such as:

stack
stade
staff
stage
stagy

but you wont get words like

start

because the t would already be visible (in What's the Phrase), and you would have typed:

st??t

##Instructions for running

Go to http://nodejs.org and install NodeJS

Then clone this repo:

git clone https://github.com/amirrajan/word-finder.git

And cd into the directory (all instructions below assume you are in the word-finder directory:

cd word-finder

##Run Locally

Install all the dependencies:

npm install (you may need to prefix this with sudo if you're on Mac)

Install mocha:

npm install mocha -g

To run tests, type:

mocha --compilers js:babel-register

If you want tests to execute every time you change a file:

brew install fswatch

In another window run

fswatch test/search_spec.js | xargs -n1 -I{} mocha --compilers js:babel-register`

Run the app:

node start.js

Consider using the package nodemon if you'd like. It'll auto start your server every time you save.

npm install nodemon -g
nodemon start.js

Then navigate to http://localhost:3000

##Signing up, and deploying to Heroku

###Documentation

From heroku.com, click Documentation, then click the Getting Started button, then click Node.js from the list of options on the left...which will take you here: https://devcenter.heroku.com/articles/nodejs

Install Heroku toolbelt from here: https://toolbelt.heroku.com/

Sign up via the website (no credit card required).

Login using the command line tool:

heroku login

Create your heroku app:

heroku create

Git deploy your app:

git push heroku master

Open the app (same as opening it in the browser):

heroku open

And your app should be up on Heroku.

word-finder's People

Contributors

amirrajan avatar justinjohnwilliams avatar bforrest avatar ragingfire007 avatar jatindersingh93 avatar andersos avatar duyatran avatar

Watchers

James Cloos avatar  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.