This website will be the interface for the organizations to get AI insights about their own code and their software development teams.
GPL-3.0 License
This is the project for the Vibinex website and the primary backend for the Vibinex Browser Extension. It's a Next.js project bootstrapped with create-next-app
.
Vibinex Code Review enriches the GitHub, Bitbucket and GitLab pull-request/merge-request UI with data from the git history. By making the UI more personalized to the contributors of the project using Vibinex, tech teams can increase the quality of their code reviews, increase the overall code awareness and ownership in the team and reduce the time and effort it takes to review a pull request.
Vibinex Code Review offers these features:
The primary frontend of the Vibinex Code Review tool is the browser extension. There are two backends:
git clone https://github.com/<your_username>/vibinex-server.git
or, if you use SSH
cloning:
git clone [email protected]:<your_username>/vibinex-server.git
git checkout -b <your_username>/<your_branch_name>
Enter the repository folder and install dependencies:
npm install
# or
yarn
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
Create a .env.local
file in the root directory and add the following in it:
# NextAuthJS
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=
# Github Login
GITHUB_CLIENT_ID=78eb181cacd859319797
GITHUB_CLIENT_SECRET=c6efe816493a0b553ef20364134a3009b724b402
# Bitbucket Login
BITBUCKET_CLIENT_ID=
BITBUCKET_CLIENT_SECRET=
# Bitbucket OAuth consumer
BITBUCKET_OAUTH_CLIENT_ID=
# GitLab Login
GITLAB_CLIENT_ID=
GITLAB_CLIENT_SECRET=
# PostGreSQL Connection
PGSQL_USER=postgres
PGSQL_PASSWORD=vibi@test-pg
PGSQL_HOST=127.0.0.1
PGSQL_PORT=5432
PGSQL_DATABASE=test-db
(TODO: Add steps for downloading the cloud-sql-proxy
script)
Now run the following command is a different terminal:
./cloud-sql-proxy --port 5432 vibi-test-394606:asia-south1:test-db --gcloud-auth
This will enable you to connect with our test database hosted on your localhost.
The environment file also contains client ID and client secret for the Vibinex-Test OAuth App so that you can use the entire website locally
by logging in using GitHub.
You can create your own Bitbucket or GitLab OAuth consumers and add your client-id and client-secrets in the .env.local
file to test them out.
Unit tests written using jest library can be run using:
npm test