Code Monkey home page Code Monkey logo

codeguide's Introduction

CodeGuide

Codeguide is an open-source tool for creating and viewing code guides. For onboarding, explaining the context of a code review, and more.

CodeGuide

Why would you use it?

Onboard (or re-board) to a new project or feature

With code guides you can help new team members understand the codebase and get up to speed quickly. Also, it's a great way to re-board yourself to a project or feature area you haven't worked on for a while.

Understand the context of a code review/PR change

It makes it easy for PR authors to explain the reasoning behind their decisions and draw attention to important parts of their changes so reviewers can focus on those first.

Make code presentations

You can use Codeguide for creating code presentations, whether it's for a conference talk or a training session.

Next.js

This is a Next.js project. To bootstrap a similar one, we recommend using create-t3-stack.

Architecture

Project is written in TypeScript, using:

  • AWS DynamoDB as a database (but the plan is to support other databases in the future)
  • NextAuth.js for authentication (only GitHub connection at the moment)
  • tRPC for handling API requests
  • Tailwind CSS for styling

Self hosting

If you want to self host this project, first you need to set up enviroment variables:

AWS_APP_REGION=''
AWS_APP_ACCESS_KEY=''
AWS_APP_SECRET_KEY=''

DYNAMODB_GUIDES_TABLE=''
DYNAMODB_STEPS_TABLE=''
DYNAMODB_COMMENTS_TABLE=''

NEXTAUTH_SECRET=''
NEXTAUTH_URL=http://localhost:3000

then run the development server:

npm run dev
# or
yarn dev

DynamoDB table structure

  • DYNAMODB_GUIDES_TABLE
    • used for storing guide info (repository name, owner, createdBy etc)
    • partition key: id (string)
    • secundary index: createdBy (string) partition key, createdAt (number) sort key
  • DYNAMODB_STEPS_TABLE
    • saved steps for each guide
    • partition key: guideId (string), sort key: changeId (string). changeId (string, ULID)
  • DYNAMODB_COMMENTS_TABLE
    • saved comments for each step
    • partition key: guideId (string), sort key: commentId (string, ULID)

After that, open http://localhost:3000 with your browser to see the result.

codeguide's People

Contributors

dependabot[bot] avatar domagojk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.