Giter Site home page Giter Site logo

api-sigarra's People

Contributors

imnotteixeira avatar reeckset avatar tiagocv64 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

api-sigarra's Issues

[Meals] Parse pdfs from sasup/gertal

It should be possible to retrieve the meals from each day/date and if it is lunch or dinner (when applicable), get their type (meat, fish, soup, etc) while also fetching the related institution (FEUP, FCUP, etc..)

Boilerplate Code

  • Create Docker Containers to host a testable Node.js application, connected to a MongoDB Database, in another container. This should be done using docker-compose by defining each serivce.

  • Additionally, it should be possible to run a container that executes the application tests in a controlled environment. Hint: instead of running npm start in the image, run npm test instead.

  • The tests must be done with Mocha + Chai, and should run with npm test command.

  • Create a simple test to ensure that they work and serve as a demo for the upcoming tests

  • One must be able to pass the Running Port of the application as an env variable, being 3000 the DEFAULT_PORT if none is specified

  • Configure eslint to be able to lint code

[Meals] API Endpoints

There should exist these endpoints:

GET meals/<institution> Return the available meals for that institution

GET meals/<institution>/week/<week_no> Return the meals for that institution at the given week of current year

GET meals/institutions Return the available institutions

POST meals Used to store new meals data (should be protected - not public - and should allow for multiple meals to be added at a time)

clarification for removal in comment below

More endpoints can be added in the future for conveniency

[Meals] DB Storage

The parsed meals should be stored in the mongo db, to be accessed later from the API.

For a Meal, it should be possible to know the meal title, the type (meal, fish, soup, etc.), the date, if it is at lunch or dinner and where it will be served (i.e. FEUP)

One or more models can be used, for example, it could be useful to get all meals for a specified institution, so there would have to be both an Institution Model and a Meal Model.

Create a Comprehensive readme.md

The Repository Readme must include:

  • The purpose of the project
  • The Technology Stack involved (What Technologies are we using)
  • How to start the project (Dev Mode and Production Mode)

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.