Giter Club home page Giter Club logo

caloriecounter's Introduction

Caloriecounter

This is a distributed application that lets users keep track of their calorie and protein intake, and keep statistics on meals eaten, weight per day, etc.

Backend

The backend provides a REST API, which means that you could build many types of clients for it, such as web, mobile, etc. It is built in Java Spring with a mySQL database. It provides the following API:

  • POST /login
  • GET /loggedin
  • POST /foods
  • GET /foods
  • PUT /foods/:id
  • POST /userdays (contains date and weight stats, will take pull requests on a better name..)
  • GET /userdays
  • PUT /userdays/:id
  • POST /meals
  • GET /meals
  • PUT /meals/:id
  • DELETE /meals/:id

Words with a colon (:) prepended are parameters. Note that registration is made by browsing directly to the backend's ip/registration. Read why in the documentation in the LoginController class.

Client

The provided client is a React app. It could have been served by the same Spring server running the API, but since the task was to create a distributed application, I build the client separately. Just serve the React client with any simple web server built in any language or with create-react-app, and it will be able to communicate with the backend server. Note that not all available API calls in the backend have an implementation in the client. It is intended that clients can choose which parts of the API they wish to implement.

caloriecounter's People

Watchers

James Cloos avatar Max Körlinge 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.