How littbarskiadeh/teamwork works
Project type and purpose
• This “Teamwork” project is a Node.js/Express backend API for an internal social network.
• Its main functions are to let authenticated employees share GIFs and articles (posts) and to retrieve feeds of those items.
File structure
Top-level folders and what they imply:
• controllers/ → business-logic layer: functions for processing requests and orchestrating DB calls
• routes/ → API layer: Express route definitions grouped by resource (auth, feeds, gifs, posts, users)
• middleware/ → cross-cutting concerns (e.g., authentication)
• db/ → data access layer: SQL queries and connection logic; local storage of GIF binaries under db/gif/
• test/ → automated tests against index.js and API endpoints
• index.js → application entry point; wires up Express app, middleware, routes, error handling
• Procfile → deployment command for Heroku (web: node index.js)
• .travis.yml, .nycrc → CI configuration (Travis CI) and test coverage setup
README
• Confirms that Teamwork’s focus is on GIFs and Articles sharing within an organization.
• No frontend code is present—this is purely a backend service.