-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Added docs regarding postman, and refactored architecture diagrams
- Loading branch information
Showing
7 changed files
with
85 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
# Table of contents | ||
|
||
- [❔ What is keyshade?](README.md) | ||
- [🏗️ Architecture of keyshade](architecture-of-keyshade.md) | ||
|
||
## 🥰 CONTRIBUTING TO KEYSHADE | ||
|
||
- [Summary](contributing-to-keyshade/summary.md) | ||
- [Design of our code](contributing-to-keyshade/design-of-our-code/README.md) | ||
- [Organization of code](contributing-to-keyshade/design-of-our-code/organization-of-code.md) | ||
- [API](contributing-to-keyshade/design-of-our-code/api.md) | ||
- [Integrations](contributing-to-keyshade/design-of-our-code/integrations.md) | ||
- [Prerequisites](contributing-to-keyshade/prerequisites.md) | ||
- [Environment Variables](contributing-to-keyshade/environment-variables.md) | ||
- [Setting things up](contributing-to-keyshade/setting-things-up.md) | ||
- [Running things locally](contributing-to-keyshade/running-things-locally/README.md) | ||
- [Running the API](contributing-to-keyshade/running-things-locally/running-the-api.md) | ||
- [Design of our code](contributing-to-keyshade/design-of-our-code/README.md) | ||
- [API](contributing-to-keyshade/design-of-our-code/api.md) | ||
- [Integrations](contributing-to-keyshade/design-of-our-code/integrations.md) | ||
- [API Testing](contributing-to-keyshade/running-things-locally/api-testing.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
description: Glimpse into the bigger picture | ||
--- | ||
|
||
# 🏗️ Architecture of keyshade | ||
|
||
The following few diagrams try to explain the architecture of keyshade. | ||
|
||
### Control Flow | ||
|
||
![Control Flow](../blob/control-flow.png) | ||
|
||
### Hierarchical Structure | ||
|
||
![Hierarchical Structure](../blob/data-hierarchy.png) | ||
|
||
### Behind the curtain | ||
|
||
#### Projects | ||
|
||
![Projects](../blob/projects.png) | ||
|
||
#### Creating secrets | ||
|
||
![Creating secrets](../blob/secret-creation.png) | ||
|
||
#### Retrieving secrets | ||
|
||
![Retrieving secrets](../blob/secret-retrieval.png) |
24 changes: 24 additions & 0 deletions
24
docs/contributing-to-keyshade/design-of-our-code/organization-of-code.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
description: An insight into how our codebase is organized | ||
--- | ||
|
||
# Organization of our code | ||
|
||
In this section, we will discuss how our codebase is organized. We have tried to keep the codebase as modular as possible to make it easier for developers to understand and contribute to the project. Here are the packages, sub-packages, and how they all contribute to the project. | ||
|
||
## Packages under `apps` directory | ||
|
||
The `apps` directory contains all the applications that are part of the project. Each application is a separate package and has its own `package.json` file. The applications are: | ||
|
||
- [**`api`**](../../../apps/api/): The main API server that serves the REST API. | ||
- [**`api`**](../../../apps/web/): The web application that serves the homepage. | ||
- [**`platform`**](../../../apps/workspace/): The platform application hosts the UI that allows users to do the actual work. | ||
|
||
## Packages under `packages` directory | ||
|
||
The `packages` directory contains all the shared packages that are used across the applications. These packages are: | ||
|
||
- [**`eslint-config-custom`**](../../../packages/eslint-config-custom/): Contains the custom ESLint configuration for the project. | ||
- [**`tsconfig`**](../../../packages/tsconfig/): Contains the custom TypeScript configuration for the project. | ||
|
||
Apart from the `package.json` files used in the individual packages, we also have a root level `package.json` file that contains the scripts to run the applications and the shared packages. This file also contains the dependencies that are shared across the applications. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
docs/contributing-to-keyshade/running-things-locally/api-testing.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
description: API testing using Postman | ||
--- | ||
|
||
# API Testing | ||
|
||
We use Postman to test our APIs. All of our endpoints are tested using Postman and we maintain a detailed documentation of every endpoint in our Postman collection. You can find the workspace in [here](https://www.postman.com/blue-crescent-581920/workspace/keyshade) | ||
|
||
We maintain an API named [`keyshade API`](https://www.postman.com/blue-crescent-581920/workspace/keyshade/api/a31bdb66-69e3-469b-afb4-f2051385e634?branch=develop) in our Postman workspace. This API contains all the endpoints that we have in our application. This is where you can find all the collections which you can use to develop/test our APIs | ||
|
||
## Getting started | ||
|
||
- For starters, make sure you have Postman installed on your system. If not, you can download it from [here](https://www.postman.com/downloads/) | ||
- Once you have Postman installed, you can go to the API link mentioned above. | ||
- For every collection in the API, the requests hold one or more examples that you can use to test the API. You can also find the schema of the request itself. |