ProgFlow is an open-source self-hosted software to keep track of your coding time directly from VS Code. This source code consist of backend server, frontend web application and database schema.
To setup ProgFlow we have to get 4 things running. These four things are Database, Golang Server, Web Frontend and VS Code Extension. Let's setup them one by one.
Find db-schema.sql
file under db
folder and import it into your PostgreSQL Database.
- Install Golang in your computer.
- Go to
server/db/connect.go
and change your database details there. - Important you can use environment variables to store this sensitive data. To make things simple I haven't. But it's highly recommended.
- Run
make run
command inside/server
folder. - Your backend server is now setup and running.
- Go inside
web/frontend/src/main.tsx
and add Auth0 Domain and ClientID there. - Simply run command
npm run dev
. - Now go to
localhost:5173
and Sign Up. - Your will then be redirected to Home Page. Now go to postgres database and copy your
API Key
fromusers
table.
- It's source code is present in
progflow-vscode-extension
and can build a installer using this documentation. - You will get vsix that can be installed directly in VS Code.
- After installing this extension press
CTRL + SHIFT + P
and search forSet API Key
and paste your API Key there. - Your extension is now connected with server and you can see your coding activity on
localhost:5173
If you face any issue while setting up ProgFlow please open an issue. I'll reply as soon as possible.