-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG-55]: Improve Contributions Docs #147
Open
leonamagaya
wants to merge
9
commits into
dev
Choose a base branch
from
BUG-56
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+777
−45
Open
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a1d04d1
[BUG-55]: Improve Contributions Docs #124
b463ec4
updating link to the repository
48c64c4
Merge branch 'dev' of https://github.com/Emmanuel-Melon/planet-of-the…
4a572d1
change CONTRIBUTING.md
68830cf
final changes to CONTRIBUTING.md
d727898
removing typo
ef0effe
highlighting code blocks
35fe22b
change README.md
4f05700
final changes to README.md
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,78 @@ | ||
# Contributing | ||
# Contributing Guidelines | ||
|
||
Welcome to the contributing guidelines for the Planet Of The Bugs repository on GitHub! We appreciate your interest in contributing to our project. Whether you're an experienced developer or just starting out, we value your input and contributions. | ||
|
||
## Table of Contents | ||
|
||
- [Getting Started](#getting-started) | ||
- [Forking the Repository](#forking-the-repository) | ||
- [Setting Up Your Local Environment](#setting-up-your-local-environment) | ||
- [Contributing](#contributing) | ||
- [Creating a New Feature or Bugfix](#creating-a-new-feature-or-bugfix) | ||
- [Making Changes](#making-changes) | ||
- [Submitting a Pull Request](#submitting-a-pull-request) | ||
- [Code of Conduct](#code-of-conduct) | ||
|
||
## Getting Started | ||
|
||
Thank you for considering contributing to our project. Before you begin, please make sure you have a GitHub account. If you don't have one, you can sign up [here](https://github.com/signup). | ||
|
||
### Setting Up Your Local Environment | ||
|
||
1. Clone the repository to your local machine: git clone https://github.com/Emmanuel-Melon/planet-of-the-bugs.git | ||
2. Navigate to the main branch: | ||
```git checkout dev``` | ||
3. Navigate to the client app: | ||
```cd apps/client``` | ||
4. To get started, copy the .example.env file to .env by running the following command in your terminal: | ||
```cp .example.env .env``` | ||
5. Install any necessary dependencies: | ||
```yarn && yarn dev``` | ||
6. Start the development server by running the following command in your terminal: Navigate to [http://localhost:3000](http://localhost:3000) in your web browser to view the app. | ||
|
||
|
||
## Contributing | ||
|
||
We welcome contributions from developers of all skill levels. Whether you're fixing a bug, adding a new feature, or improving documentation, your efforts are valued. | ||
|
||
### Creating a New Feature or Bugfix | ||
|
||
1. Before starting any work, check the [Issues](https://github.com/Emmanuel-Melon/planet-of-the-bugs/issues) section to see if the feature or bugfix you're considering is already being discussed. If not, you can open a new issue to discuss your proposal. | ||
|
||
2. Once you have a clear idea of what you'd like to contribute, create a new branch from the `dev` branch: | ||
```git checkout -b feature-or-bugfix-name``` <br> | ||
**IMPORTANT** | ||
* The naming convention for your branch should be as follows: | ||
```BUG-<ISSUE_NUMBER>``` | ||
* The issue number should follow the ordered sequence. | ||
|
||
|
||
### Making Changes | ||
|
||
1. Make your changes in the appropriate files within your local repository. | ||
|
||
2. Commit your changes with a descriptive commit message: git add . && git commit -m "Add a concise description of your changes" | ||
|
||
### Submitting a Pull Request | ||
|
||
1. Push your changes to your forked repository: git push origin feature-or-bugfix-name | ||
|
||
2. Visit the original repository on GitHub and click the "Compare & pull request" button next to your branch. | ||
|
||
3. Your pull request will be reviewed by maintainers, and feedback may be provided. Once your changes are approved, they will be merged into the main repository. | ||
|
||
## Code of Conduct | ||
|
||
Please review and adhere to our [Code of Conduct](CODE_OF_CONDUCT.md) throughout your participation in this project. We value an inclusive and welcoming environment for all contributors. | ||
|
||
Thank you for taking the time to contribute to Planet Of The Bugs. Your efforts help make our project better for everyone! | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<script> | ||
const muzanURL = | ||
"https://m.media-amazon.com/images/M/MV5BMzcyZjYxYzktMWZhMi00ZGFkLTllMTEtNjJjZjU4ODdlYzRmXkEyXkFqcGdeQXVyNjAwNDUxODI@._V1_.jpg"; | ||
const tengenURL = | ||
"https://rare-gallery.com/thumbnail/1375991-tengen-uzui-sound-hashira-demon-slayer-anime-kimetsu-no-yaiba.jpg"; | ||
</script> | ||
|
||
<div class="p-2 bg-base-200 h-2/4 overflow-y-auto"> | ||
<div class="chat chat-start"> | ||
<div class="chat-image avatar"> | ||
<div class="w-8 rounded-full"> | ||
<img src={muzanURL} alt="deadpool" /> | ||
</div> | ||
</div> | ||
<div class="chat-bubble bg-base-200 text-neutral-focus"> | ||
Ah, the Sound Hashira. It seems we have finally crossed paths. Quite | ||
flashy! | ||
</div> | ||
</div> | ||
<div class="chat chat-end"> | ||
<div class="chat-image avatar"> | ||
<div class="w-8 rounded-full"> | ||
<img src={tengenURL} alt="deadpool" /> | ||
</div> | ||
</div> | ||
<div class="chat-bubble"> | ||
Muzan Kibutsuji, your reign of terror ends here. | ||
</div> | ||
</div> | ||
<div class="chat chat-start"> | ||
<div class="chat-image avatar"> | ||
<div class="w-8 rounded-full"> | ||
<img src={muzanURL} alt="deadpool" /> | ||
</div> | ||
</div> | ||
<div class="chat-bubble bg-base-200 text-neutral-focus"> | ||
Your resistance is futile. I will crush you and all the Demon Slayers who | ||
dare oppose me. | ||
</div> | ||
</div> | ||
<div class="chat chat-end"> | ||
<div class="chat-image avatar"> | ||
<div class="w-8 rounded-full"> | ||
<img src={tengenURL} alt="deadpool" /> | ||
</div> | ||
</div> | ||
<div class="chat-bubble"> | ||
Your empty threats won't intimidate me, Muzan. | ||
</div> | ||
</div> | ||
<div class="chat chat-end"> | ||
<div class="chat-image avatar"> | ||
<div class="w-8 rounded-full"> | ||
<img src={tengenURL} alt="deadpool" /> | ||
</div> | ||
</div> | ||
<div class="chat-bubble"> | ||
Your arrogance blinds you, Muzan. We fight for a cause greater than | ||
ourselves, a cause that protects humanity from the darkness you embody. | ||
Your | ||
</div> | ||
</div> | ||
<div class="chat chat-start"> | ||
<div class="chat-image avatar"> | ||
<div class="w-8 rounded-full"> | ||
<img src={muzanURL} alt="deadpool" /> | ||
</div> | ||
</div> | ||
<div class="chat-bubble bg-base-200 text-neutral-focus"> | ||
Prepare to witness the true terror of the Demong King! | ||
</div> | ||
</div> | ||
<div class="chat chat-end"> | ||
<div class="chat-image avatar"> | ||
<div class="w-8 rounded-full"> | ||
<img src={tengenURL} alt="deadpool" /> | ||
</div> | ||
</div> | ||
<div class="chat-bubble"> | ||
We shall emerge victorious, for the sake of all the lives you've | ||
destroyed. The sound of justice will drown out your tyranny. | ||
</div> | ||
</div> | ||
</div> |
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,17 @@ | ||
<script> | ||
|
||
// class="prose prose-sm" | ||
</script> | ||
<div | ||
class="flex justify-between items-center" | ||
> | ||
<div class="flex justify-between items-center w-full p-2"> | ||
<div class="flex items-center gap-4 prose prose-sm"> | ||
<h3 class="flex items-center">😈 Muzan Kibutsuji</h3> | ||
</div> | ||
<div class="flex items-center gap-2"> | ||
<button class="btn btn-sm btn-square"><iconify-icon icon="ri:equalizer-line" /></button> | ||
<button class="btn btn-sm btn-square"> <iconify-icon icon="ri:information-line" /></button> | ||
</div> | ||
</div> | ||
</div> |
Empty file.
25 changes: 25 additions & 0 deletions
25
apps/client/src/components/Lessons/LessonInteracticeContent.svelte
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,25 @@ | ||
<script> | ||
export let lesson; | ||
import CodeEditor from "$components/CodeEditor/CodeEditor.svelte"; | ||
import EditorTerminal from "$components/CodeEditor/EditorTerminal.svelte"; | ||
import EditorIFrame from "$components/CodeEditor/EditorIFrame.svelte"; | ||
|
||
export let sourceDoc = ``; | ||
|
||
$: isExpanded = false; | ||
|
||
const handleExpand = () => { | ||
isExpanded = !isExpanded; | ||
}; | ||
</script> | ||
|
||
<section> | ||
<div class="flex h-full"> | ||
<div class="basis-2/4"> | ||
<CodeEditor {handleExpand} {isExpanded} /> | ||
</div> | ||
<div class="basis-2/4 h-full"> | ||
<EditorIFrame {sourceDoc} /> | ||
</div> | ||
</div> | ||
</section> |
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,18 @@ | ||
import { | ||
PUBLIC_APPWRITE_ENDPOINT, | ||
PUBLIC_APPWRITE_PROJECT_ID, | ||
} from "$env/static/public"; | ||
import { Client as Appwrite, Databases, Account, Storage } from "appwrite"; | ||
|
||
const server = { | ||
endpoint: PUBLIC_APPWRITE_ENDPOINT, | ||
project: PUBLIC_APPWRITE_PROJECT_ID, | ||
}; | ||
|
||
const client = new Appwrite(); | ||
const account = new Account(client); | ||
const storage = new Storage(client); | ||
client.setEndpoint(server.endpoint).setProject(server.project); | ||
|
||
const sdk = { account, storage }; | ||
export { sdk, server }; |
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,33 @@ | ||
import { | ||
PUBLIC_APPWRITE_ENDPOINT, | ||
PUBLIC_APPWRITE_PROJECT_ID, | ||
PUBLIC_APPWRITE_SECRET_KEY, | ||
PUBLIC_APPWRITE_LOCAL_API_KEY, | ||
} from "$env/static/public"; | ||
import sdk from "node-appwrite"; | ||
|
||
// Init SDK | ||
const client = new sdk.Client(); | ||
|
||
const storage = new sdk.Storage(client); | ||
|
||
const health = new sdk.Health(client); | ||
|
||
client | ||
.setEndpoint(PUBLIC_APPWRITE_ENDPOINT) | ||
.setProject(PUBLIC_APPWRITE_PROJECT_ID) | ||
.setKey(PUBLIC_APPWRITE_LOCAL_API_KEY); | ||
|
||
(() => { | ||
const promise = health.get(); | ||
|
||
promise.then( | ||
function (response) { | ||
console.log(response); | ||
}, | ||
function (error) { | ||
console.log(error); | ||
} | ||
); | ||
})(); | ||
export const appwriteServer = { storage }; |
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 @@ | ||
console.log("Helllo, World!"); |
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,50 @@ | ||
import { PUBLIC_GITHUB_API_ENDPOINT } from "$env/static/public"; | ||
import { HttpLink, InMemoryCache, ApolloClient } from "@apollo/client/core"; | ||
|
||
type HttpLinkOptions = { | ||
Authorization: string; | ||
uri?: string; | ||
}; | ||
|
||
type GitHubHttplink = HttpLinkOptions & { | ||
Authorization: string | null; | ||
}; | ||
|
||
export class GithubApi { | ||
options: { Authorization: null; uri: any }; | ||
session: null; | ||
client: null; | ||
constructor(options: { Authorization: null; uri: any }) { | ||
this.options = options; | ||
this.session = null; | ||
this.client = null; | ||
} | ||
|
||
setSession(session: any) { | ||
this.session = session; | ||
this.client = new ApolloClient({ | ||
cache: new InMemoryCache(), | ||
credentials: "include", | ||
link: this.createHttpLink(this.options), | ||
}); | ||
} | ||
|
||
getGithubClient() { | ||
return this.client; | ||
} | ||
|
||
createHttpLink({ Authorization, uri }: HttpLinkOptions) { | ||
return new HttpLink({ | ||
uri, | ||
credentials: "same-origin", | ||
headers: { | ||
Authorization: `Bearer ${this.session}`, | ||
}, | ||
}); | ||
} | ||
} | ||
|
||
export const GITHUB_API = new GithubApi({ | ||
Authorization: null, | ||
uri: PUBLIC_GITHUB_API_ENDPOINT, | ||
}); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be
localhost:5173
in this case.