Simple app for getting random Intel codename
Hosted on Heroku Free Tier
- Mattias P Johansson's side project naming method. Featured in this FunFunFunction Video
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- node >= v6.9
- npm >= v3.5
To get Random Intel Codename server running on your local machine do the following steps.
git clone https://github.com/whiteboxpub/random-intel-codename.git
cd random-intel-codename
./install.sh
npm run start
||npm run start-watch
nodemon should now be active running the server on port 3000. You can access the frontend via http://localhost:3000 . For just getting names you can request http://localhost:3000/name . Changes in the code will auto reload thanks to nodemon.
Yay TDD! We are currently using dependency injection with along side libraries: mocha, chai, sinon, and supertest to facilitate testing. Also have CircleCI hooked up to make sure all test are passing before merging pull request.
Run tests once: npm run test
*mocha included as dependancy so you don't have to have mocha installed globally
Continuously run tests on file save: npm run test-watch
*currently can't run tests while running the server because both use port 3000
We use ESLint to avoid divergent coding styles. The process goes:
npm run lint
--> fix style errors --> repeat
- Follow install instructions to get things up and running locally first.
- Make sure you have heroku account and heroku-cli
- Init heroku with
heroku create
- Push code to heroku
./deploy.sh
- Create a single dyno
heroku ps:scale web=1
- Open Project with
heroku open
. - Boom the app is live on the web!
- Add
/name
to the URL to just return a random codename.
- Foswig.js - Power behind shuffle feature
- Express.js - The Nodejs server framework used
- axios - The request library used
- Babel - The ES6 compiler used
- NPM - The dependency manager used
We use SemVer for versioning. For the versions available, see the releases page.
- Steven Price - Inital work - stevenjacobprice.com, GitHub
- Travis Shears - Initial work - travisshears.com, GitHub
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- All data is scraped from this wikipedia page. These names are probally under Intel copywrite.