Git Product home page Git Product logo

word-counter's Introduction

This project was bootstrapped with Create React App. website is deployed over heroku -- https://tiny-word-counter.herokuapp.com/

Clone the repository

git clone https://github.com/vishalsh2299/Word-Counter.git

Move into the directory

cd client

To start the server type the below commands

npm run start-server

Local server will be running at localhost:5000 Hosted server running at https://tiny-word-counter.herokuapp.com/

To start the frontend type the below commands. Runs at localhost:3000

ng serve

In the project directory, you can run and create the build folder(for deployment):

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

Componenets of the code

To install all the dependencies run npm install

Libraries used are

  1. React material ( for loader )
  2. React ( front end )
  3. Axios ( to get and post data using the API )
  4. Body parser ( to parse JSON data )
  5. Request ( to fetch data from the given API )
  6. Express ( for handling requests )
  7. Nodemon ( Easy reloading only for development )

Backend

Goto: server -> index.js Get the POST request from the frontend form value. Then fetching the data from the API and mapping each word with its count and then sorting and storing it in an array. Then sending the top n (value that we got from the form) words with their count.

Frontend

Goto: src index.js is the main file that renders the components and here we fetch the API data and pass it to FetchWords component FetchWords it renders the props data that is sent and shows all the words with their respective frequency CountWord: it gets the input value and pass to the api using axios on submitting.

Screenshots

#Rendering the top N words

Screenshot (207)

#Loading Words

Screenshot (208)

word-counter's People

Contributors

vishalsh2299 avatar

Watchers

 avatar

word-counter's Issues

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.