Skip to content

Latest commit

 

History

History
84 lines (57 loc) · 2.36 KB

README.md

File metadata and controls

84 lines (57 loc) · 2.36 KB

Mentorshare App

Table of Contents

About

This is a web application that enables users to upload their code snippets and have them reviewed by other developers.

Tech Stack

  • MERN: MongoDB, Express, ReactJS, NodeJS
  • Material-UI
  • Mongoose
  • JSON Web Token
  • Socket.io
  • Stripe

Work flow

  • Each user must specify their level of knowledge in at least one programming language, and they can only upload snippets in that language.

Image

Image

  • Users need to pay for their code to be reviewed and each review costs one credit.
  • Users can increase their balance through online payment, handled by Stripe.

Image

  • Reviewers receive credit for reviewing.
  • Code snippets are matched with reviewers automatically, based on knowledge level of the author and a potential reviewer which is equal or greater.
  • The matched reviewer is requested to review a code snippet, and they have the chance to accept or decline the request.

Image

  • Once accpeted, the reviewer can comment on the code snippet and submit it for the author to view.

Getting started

1. In order to run this app, you need to have node.js installed.

2. git clone [email protected]:hatchways/team-dragonfruit.git

3. Install server-side dependencies and start running:

cd team-dragonfruit/server
npm install
npm run dev
Environment variables

In order to run the server, you need to create .env.local file in /server with the following content:

MONGODB_URL=mongodb+srv://<USERNAME>:<PASSWORD>@cluster0-ttgy0.mongodb.net/<DB_NAME>?retryWrites=true&w=majority
JWT_SECRET=<JWT_SECRET>
STRIPE_SECRET=<STRIPE_SECRET>

4. Install client-side dependencies and start running:

cd team-dragonfruit/client
npm install
npm run start