Code Monkey home page Code Monkey logo

docs's Introduction

Configu Company Website Repo ๐Ÿš€

Netlify Status

Table of Contents

Getting Started

  1. Install dependencies
npm install
  1. Fill up the environment variables
cp .env.example .env

An .env file should consist of publicly available included in .env as well as private ones:

ALGOLIA_ADMIN_KEY=

โš ๏ธ Please ask project owners for private variables or, if you have access to Gatsby Dashboard, just pull them out from the Environment variables section.

Usage

Run the website

npm run start

Build the website

npm run build

Run the built website

npm run serve

Clean Gatsby cache

npm run clean

Project Structure

โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ components
โ”‚   โ”‚  โ”œโ”€โ”€ pages โ€” React components that are being used specifically on a certain page
โ”‚   โ”‚  โ””โ”€โ”€ shared โ€” React components that are being used across the whole website
โ”‚   โ”œโ”€โ”€ constants
โ”‚   โ”œโ”€โ”€ hooks
โ”‚   โ”œโ”€โ”€ icons
โ”‚   โ”œโ”€โ”€ images
โ”‚   โ”œโ”€โ”€ pages
โ”‚   โ”œโ”€โ”€ styles
โ”‚   โ”œโ”€โ”€ templates
โ”‚   โ”œโ”€โ”€ utils
โ”‚   โ””โ”€โ”€ html.jsx โ€” HTML template for all generated pages. Read more about it here โ€” gatsbyjs.org/docs/custom-html
โ”œโ”€โ”€ static
โ”‚   โ”œโ”€โ”€ fonts
โ”‚   โ””โ”€โ”€ images
โ”œโ”€โ”€ gatsby-browser.js โ€” Usage of the Gatsby browser APIs
โ”œโ”€โ”€ gatsby-config.js โ€” Main configuration file for a Gatsby site
โ”œโ”€โ”€ gatsby-node.js โ€” Usage of the Gatsby Node APIs
โ””โ”€โ”€ gatsby-ssr.js โ€” Usage of the Gatsby server-side rendering APIs

Component Folder Structure

Each component includes

  1. Main JavaScript File
  2. Index File

Each component optionally may include

  1. Folder with images and icons
  2. Folder with data

Also, each component may include another component that follows all above listed rules.

Example structure

component
โ”œโ”€โ”€ nested-component
โ”‚  โ”œโ”€โ”€ data
โ”‚  โ”‚  โ””โ”€โ”€ nested-component-lottie-data.json
โ”‚  โ”œโ”€โ”€ images
โ”‚  โ”‚  โ”œโ”€โ”€ nested-component-image.jpg
โ”‚  โ”‚  โ”œโ”€โ”€ nested-component-inline-svg.inline.svg
โ”‚  โ”‚  โ””โ”€โ”€ nested-component-url-svg.url.svg
โ”‚  โ”œโ”€โ”€ nested-component.js
โ”‚  โ””โ”€โ”€ index.js
โ”œโ”€โ”€ data
โ”‚  โ””โ”€โ”€ component-lottie-data.json
โ”œโ”€โ”€ images
โ”‚  โ”œโ”€โ”€ component-image.jpg
โ”‚  โ”œโ”€โ”€ component-inline-svg.inline.svg
โ”‚  โ””โ”€โ”€ component-url-svg.url.svg
โ”œโ”€โ”€ component.js
โ””โ”€โ”€ index.js

Code Style

ESLint

ESLint helps find and fix code style issues and force developers to follow same rules. Current configuration is based on Airbnb style guide.

Additional commands:

npm run lint

Run it to check the current status of eslint issues across project.

npm run lint:fix

Run it to fix all possible issues.

Prettier

Prettier helps to format code based on defined rules. Difference between Prettier and ESLint.

Additional commands:

npm run format

Run it to format all files across the project.

VS Code

Following extensions required to simplify the process of keeping the same code style across the project:

After installation enable "ESLint on save" by adding to your VS Code settings.json the following line:

"editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
}

You can navigate to settings.json by using Command Pallete (CMD+Shift+P) and then type "Open settings.json".

To enable Prettier go to Preferences -> Settings -> type "Format". Then check that you have esbenp.prettier-vscode as default formatter, and also enable "Format On Save".

Reload VS Code and auto-format will work for you.

docs's People

Contributors

aman1919 avatar andrewgolovanov avatar arpitpandey29 avatar bolotskydev avatar cstayyab avatar den-bratchikov avatar dependabot[bot] avatar gevaperry avatar nikvoblikov avatar pelegpor avatar prosazhin avatar rannn505 avatar richardakman avatar ronconfigu avatar sanchitmahajan236 avatar sashasushko avatar shriekinninja avatar smartmind12 avatar yasell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docs's Issues

Broken Link on Integrations Page

I found one broken link in the Integrations page.
When I click the Config Editor link in the Integrations page, I get redirected to this page.

Screenshot 2023-11-12 225244

Whereas, I should be redirected to this page

Screenshot 2023-11-12 225947

I would love to generate a PR to resolve this issue.

Broken links on Configu Cloud Platform page

I found one broken link and two wrong links connected in the Configu Cloud Platform page (the page in the image below ) .

Screenshot 2023-10-19 182355

If you see carefully in the above image you can see that I have circled three links in total, that's where the problem occurs .
Exact problems are as follows :-

  • History & Versioning Link
    I get redirected to this broken link when I click on this link .

Screenshot 2023-10-19 182212

Whereas this is the right page to which I should get redirected .

Screenshot 2023-10-19 182639

  • Permissions Link
    In this one I get redirected to the wrong page, i.e., the settings page .

Screenshot 2023-10-19 182316

Whereas the write page to be redirected to is the authorization page as it contains the content about roles and permissions .

Screenshot 2023-10-19 182702

  • Tokens Link
    In tokens, I get redirected to the settings page that is same as in the case of permissions link, whereas I should get redirected to the tokens page .

Screenshot 2023-10-19 182724

I would love to generate a PR to resolve this issue, So, can you please assign it to me given this issue is valid .

Add webhooks feature documentation

Documentation for improved webhooks feature

  • Basic webhooks usage detailing how to use the feature
  • Document webhook usage with popular communication integrations
    • Discord
    • Slack
    • Microsoft teams
    • Telegram (BONUS)
  • Document webhook usage with popular CI/CD integrations:
    • Github actions
    • Gitlab ci/cd (BONUS)
    • Circle ci (BONUS)

Broken Link in the Configu Cloud Page

The single source of truth should point to the Configuration as a code page however a broken link is present instead.

Kindly assign this issue to me so that i can update the link.
Screenshot 2023-10-08 at 5 17 51 PM

Fix broken link on config schema page

Actual behavior

There is a broken link in the config schema page, view the image below.

To Reproduce

Open the config schema page and view the link.

Expected behavior

The second /docs/ should not be a part of the link.

Screenshots

image

Additional context

This issue does not occur in the development environment.

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.