Coder Social home page Coder Social logo

ananas's Introduction

Ananas

Number to word list converter with Node (Express) backend and React frontend.

Online demo

Due to simplicity, both API and client are stored in a single repository. Also, there is only one Readme.md file for both projects.

Usage

Run API, serve client and visit application in a web browser.

API

API was developed in Node v8.11.

# Install dependencies
cd api && npm install

# Run API, default port is 3333
npm start

# Run API on different port
PORT=3939 npm start

Client

Project structure based on Create React App

# Install dependencies
cd client && npm install

# Change API location in `src/configuration.js`

# Build application
npm run build

# Serve `public/` folder with HTTP/S server, e.g.
http-server -p 8080 dist

# Visit application in your web browser, i.e. http://localhost:8080

Client Development

During the development of React client, run npm start in the client/ folder. This will run development server, and will watch for source file changes to automatically reload the browser.

API Testing

Run npm test inside api/ folder to start unit tests based on Jest.

Client Testing

Run npm test inside client/ folder to start unit tests based on Jest.

Dictionary

List of 5000 most common words in English language taken from Word frequency data.

Due to nature of the list, some duplicates were removed, so there is less than 5000 words.

Script for converting words from HTML to JSON format is api/scripts/extract.js.

License

Both projects, API and client, are licensed under the MIT license. License files are located in the root folders of the respective projects.

ananas's People

Watchers

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