[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

codiga/code-snippets.dev

Repository files navigation

Datadog acquired Codiga. This repository is no longer active.

Slack LinkedIn Twitter

code-snippets.dev: the best information for code snippets tooling

This repository is for code-snippets.dev website, a collection of resources for user to manage code snippets. By defining reusable code blocks you can import in your IDE, you not only improve your productivity but you also make sure you always import the correct code and are not missing anything (e.g. missing argument, not checking error code or exceptions).

This website is maintained by Codiga.

Code Snippets Manager

Codiga provides multiple code snippets managers:

Why Code Snippets are important?

When using code snippets for yourself, you make sure you define code once and reuse it correctly in other codebases. It guarantees you are not missing an argument or an error case.When sharing code snippets in a team, it ensures that the team is using the same code consistently. By having a library of code snippets shared with your team, you ensure that your team is always using safe, vetted code patterns in all your code base.

How Code Snippets are curated?

code-snippets.dev surfaces snippets from the Codiga platform. If you want to add snippets to the search engine, add more snippets on the Codiga platform.

All Snippets are being also surfaced on the Codiga Hub.

Contribute

The website is totally open and you can open a pull request if you want to add more features.

Getting Started

This is a Next.js project bootstrapped with create-next-app.

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.


Issues

  • Found any bug, please create a new issue before working on the solution.