Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.7 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.7 KB

On Deck coding challenge: newsfeed

Screenshot 2021-12-10 at 22 35 07

Screenshot 2021-12-10 at 22 35 18

Launch newsfeed

  1. Clone it: git clone https://github.com/supalarry/on-deck-newsfeed.git
  2. Open the folder: cd on-deck-newsfeed
  3. Install the dependencies: yarn install
  4. Run the dev server: yarn dev
  5. Open http://localhost:3000

What is this newsfeed about

This project portrays a simplified slice of On Deck community platform. It has been done as a part of application process.

Feed has users participating in three fellowships:

Newsfeed shows relevant posts for each fellowship. The posts are loaded lazily and are ordered by newest first. The goal is to keep users up to date and to facilitate collaboration between them.

Project structure

Tech stack:

  • Next.js,
  • TypeScript,
  • Sqlite3,
  • Apollo server,
  • Apollo client,
  • React.

Folder structure:

  • components/ — reusable React components;
  • features/ — newsfeed feature is stored here;
  • pages/ — the usual Next.js page structure;
  • graphql/ — GraphQL server, schema, resolvers, DB connection;
  • scripts/ — contains the SQL script used for creating and populating the tables in db.sqlite.
  • shared/ — types and constants.