Git Product home page Git Product logo

dikkenek-quotes's Introduction

Dikkenek Quotes

A simple NodeJS based application to get random quotes from the film "Dikkenek".

Tech stack

This application runs on NodeJS. You can get the latest build from the official website https://nodejs.org/en/.

Installation

Follwing are the steps to install this application

  1. Clone this repository from https://github.com/Popovkov57/Dikkenek-quotes. In the terminal/command prompt, cd to the desired directory and type
git clone [email protected]:Popovkov57/Dikkenek-quotes.git
  1. cd into the Dikkenek-quotes which was cloned.
cd Dikkenek-quotes
  1. Install necessary dependencies
npm install

File Structure

The Dikkenek-quotes has an src directory which consists of three files

  1. dikkenek-quotes.json: It contains JSON data of a list of quotes.
  2. index.js: It defines methods to pick a random quote from dikkenek-quotes.json.
  3. index.test.js: It contains unit tests for methods defined in index.js.

Running the application

  1. To run all the unit tests, we use mocha, a JS testing library. Type
./node_modules/mocha/bin/mocha src/index.test.js

to run all tests. The output should be

dikkenek-quotes
   all
     ✓ it should be an array of string
     ✓ it should contain `C’est excessivement énervant !`
   random
     ✓ should return a random item from dikkenk.all
     ✓ should return an array of random items if passed a number

 4 passing (8ms)
  1. To use this library in your own app, you simply include the index.js and dikkenek-quotes.json file in working directory and require it in your file. Then you can use the methods defined in index.js.

Build Information

Version

Download

License

MIT Licence

dikkenek-quotes's People

Contributors

popovkov57 avatar durgesh-4526 avatar adarsh-kishore786 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.