Support finding pair-programming partner.
Help people to find a partner to do pair-programming.
This app will:
- Support finding a partner for pair-programming.
- Support you to offer your free time for doing pair-programming.
- Python3
- Flask
- Postgres
- Docker(option)
Before running any scripts, you'll need additional setups. After 2 steps, you should run the next command.
pip install -r requirements.txt
python main.py
Steps:
-
Add
.env
then put necessary values. You can fined a sample at.env.example
-
Make a virtual environment
-
Linux and Apple users
- Type:
[test@localhost ~]$ python3 -m venv <name>
- Enter the virtual environment:
source <name>/bin/activate
- Type:
-
Windows users
- Type:
>virtualenv .<name>
- Enter the virtual environment:
><name>\Scripts\activate
- Type:
To leave the virtual environment.
(<name>) [test@localhost ~]$ deactivate
-
-
Install Docker and VSCode extension: Remote development
-
Press
><
button which you can find at the left-bottom of the VSCode panel. -
Chose
Open Folder in Container
of pop-up panel. -
Click a button which labeled as
Open
-
If it is succeeded, you can see
Dev Container:ltw remote
at the next to the><
button. -
You can see the image of the website from
http://localhost:8000
.
-
-
Enable Github in your devcontainer.
-
You need to execute few commands. You can find the commands at
/.devcontainer/commands.example
-
To check the availability of Github, type
ssh -v [email protected]
. We expect that you can see your github account.
-
-
Execute the command
flask db init
under/app
-
Add code below to
database/migrations/env.py
# ! Import the database model under here from database.models.user import UserProfile from database.models.password import UserPassword from database.models.schedule_datetime import ScheduleDatetime
-
Execute
flask db migrate -m 'initial migration'
under/app
-
Execute
flask db upgrade'
under/app
- You can check the database using command
docker exec -it <container name> /bin/sh
※ Not inside the devcontainer. Execute them at the outside. - Accessing the Postgres CLI :
psql --username postgres
- You can check the database using command
Search opened slot in Search
, if you´d like you can book it.
Also you can offer your free time in Schedule