A web app that matches programmers to a mentor to review their code. Programmers earn credits by giving code reviews, and you can spend credits on getting your code reviewed (by someone a level up from you).
Programmers who are looking for a mentor to provide code feedback!
- Login/sign up flow with e-mail address
- Create profile
- Buy/earn/spend credits
- Notifications center
- Upload code using rich text editor
- Receive code review with real time messaging using web-sockets
- Send code review
- React, MaterialUI, react-router, context API
- Python, Flask, Redis server,
- Postgres, SQLAlchemy, web-sockets, Stripe API, For-editor, S3 Bucket, JWT
- Open a terminal and go to the server folder. Make sure you have pipenv installed (
pip install pipenv
) - Install the dependencies with
pipenv install
. This also createa a virtual environment, if there isn't one already - Activate the virtual environment
pipenv shell
- Make sure, your Postgres local server is running on local machine.
- Update `sudo apt-get update`
- Install PostgreSQL `sudo apt-get install postgresql`
- Create postgres user `sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"`
- Start PostgresSQL server `sudo service postgresql start`
- Login to server `sudo -i -u postgres`
- Open Postgres command line `psql`
- Create databases, `create database team_acorn;`, `create database team_acorn_test;`
- To stop server `sudo service postgresql stop`
- Install latest version of Postgres with default options from https://www.postgresql.org/download/.
- Run it and Choose USER= postgres
- Chose password= postgres and rest of the stuff can be default ex: port#.
- Run PSQL terminal from start menu.
- Enter the user and password with defaults for rest of options.
- Create a database using `create database team_acorn;`
- Make sure redis server is installed and running on local machine. (Linux only or install WSLv2 on windows)
sudo apt update
sudo apt install redis-server
sudo service redis-server start
- Now run the service worker
- Open new terminal and go to the server folder.
- run
pipenv shell
- update pipenv
pipenv update
- run worker
rq worker --with-scheduler
- Now goto server folder rename the
example.env
file to.env
file and open it and change all the keys to your own keys (!important) - Start the server now:
- Open a terminal and go to the server folder.
- Activate the virtual environment
pipenv shell
- run
pipenv run python run.py
from the server folder
- Now we will setup client side (make sure NodeJS is installed)
- Open cmd and move to the client directory inside your project.
- Run
npm install
- Wait couple of minutes for it to finish
- Run
npm start
- That's it.