Giter Club home page Giter Club logo

drinks's Introduction

This project came about because I wanted to gain a better understanding of React and its structure - specifically, its use outside the job-specific implementation that I've been working with since June 2016 - and because I like cocktails.

At work, I'm using React with Freezer.js, Less and the Tachyons library on a daily basis. I therefore decided to only use vanilla CSS3 in this project, and to build the first version of it without an designated state-management framework such as Freezer. (This or Redux may be refactored in at a later date, depending on how far I decide to take the app.)

This is the first time I've started a React project from scratch, although I did take advantage of the Create React App boilerplate. It currently uses json-server to simulate a full RESTful API and react-router for routing purposes.

Please be aware this project is a work in progress, and as such certain areas may not work at any given time if I'm updating them.

Getting up and running

First clone the project to your local machine. You'll also need to have Node installed and set up.

If you don't use json-server:

npm install -g json-server

In the src folder, first run:

json-server -p 8080 db.json

This will start the mock JSON server used by the project on localhost port 8080.

Then in the project folder, run:

npm start

Which, as usual with create-react-app projects, will start the project at http://localhost:3000.

Potential additional functionality

In no particular order and in what is certainly not a comprehensive list, I'm thinking about adding the following (eventually):

  • Add a new drink
  • Infinite scroll for results lists
  • Search for a specific drink
  • Allow user to select up to three ingredients, then provide only drinks that use all selected ingredients
  • When viewing a drink, suggest similar drinks using same ingredients
  • Loading/transition UX

drinks's People

Watchers

 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.