- Clone it:
git clone [email protected]:on-deck/coding-challenge-newsfeed.git
- Open the folder:
cd coding-challenge-newsfeed
- Install the dependencies:
yarn install
- Run the dev server:
yarn dev
- Open http://localhost:3000
Tech stack:
- Next.js,
- TypeScript,
- Sqlite3,
- Apollo server,
- Apollo client,
- React.
Folder structure:
components/
— reusable React components;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 indb.sqlite
.
The database is already included in the repo (db.sqlite
) and populated (scripts/populate.sql
). Its basic structure:
users
— people participating in fellowships;projects
— projects that founders are working on (connected tousers
throughuser_projects
);announcements
— announcements by On Deck Team targeting specific fellowships or global (fellowship = "all"
).
- Models are scattered across the codebase, ideally should be in a single folder