To try out Doclin, install extension in VS Code. Link to VS Code Marketplace.
Currently only supports VS Code, but to be extended to other IDEs once we validate the concept.
The purpose of this tool is to build code knowledgebase easily. Traditional code documentation methods is very inefficient. Writing code and documentation at the same time often resulted docs to be redundant, of no real-value, time-consuming and it quickly got out-of-date. We believe it is more helpful to document the answers when someone asks a question or faces a problem. This not only ensures the documentation is more meaningful, but we can spend less time in writing documentation.
Doclin is still in very early-stage. If you like the idea, please show support my star-ring this repository!
- Node.js: Ensure you have Node.js installed (minimum version required: 14.x or higher).
- PostgreSQL: Make sure you have a PostgreSQL database set up and running.
- VS Code: Ensure you have the latest version of VS Code installed.
- Setup Database
- Install Postgres locally
- Create a database named "doclin"
- Fill up the credentials in .env file
- DB_HOST and DB_PASS - These are credentials for your postgres server.
- ACCESS_TOKEN_SECRET - This is used to sign the JWT tokens. Use a random string for this.
- GITHUB_CLIENT_SECRET and GITHUB_CLIENT_ID - These are used for the github login. Get these by creating a Github app.
- SENDGRID_API_KEY - Optional. This is used for email notifications when someone is tagged on a thread. Get your own api key from Sendgrid.
- OPENAI_API_KEY - Optional. This is used for the copilot.
cd api
npm install
npm run watch
npm run dev
On Visual Studio Code, open the repository. Then on the top bar, select Run, then Start Debugging (F5).
See CONTRIBUTING.md for ways you can contribute to Doclin.