Skip to content

Commit

Permalink
Improved the readme and contribution guidelines (further changes mayb…
Browse files Browse the repository at this point in the history
…e added)
  • Loading branch information
kyrea committed Dec 27, 2023
1 parent f5f041d commit 58639e5
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 77 deletions.
85 changes: 48 additions & 37 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,81 @@
# Contributing to Waifu.it
# 🌟 Your Contribution Matters at Waifu.it! 🌟

We love your input! We want to make contributing to this project as easy as possible, whether it's:
Greetings, and a heartfelt thank you for considering becoming a part of the Waifu.it project! We're thrilled about the prospect of your contribution and have made the process a breeze. Whether you're fixing something, reporting an issue, joining us as a maintainer, suggesting fantastic new features, or just engaging in lively discussions about our code, here's your invitation to dive in:

- Submitting a fix
- Reporting an issue
- Becoming a maintainer
- Proposing new features
- Discussing the current state of the code
## Embrace our Code of Conduct

## Code of Conduct
Before you embark on your journey, take a moment to acquaint yourself with our [Code of Conduct](CODE_OF_CONDUCT.md). It's the cornerstone of our respectful and inclusive community.

The code of conduct is described in [Code of Conduct](CODE_OF_CONDUCT.md).
## FAQs - Your Shortcut to Wisdom 🧠

## Frequently Asked Questions (FAQs)
To make your initiation smoother, we've compiled a list of Frequently Asked Questions:

<!--- I thought it would be great to have a list of FAQs for the project to help save time for new contributors--->
- **Q:** [The Question?]
- **A:** [The Answer!]

- Q: [The Question?]
- A: [The Answer!]
## Dreaming Up Features? 🚀

## Feature Request
Crafting a Feature Request? Elevate it with:

Great Feature Requests tend to have:
- A snappy summary of your brilliant idea.
- Unveil the why behind your feature vision.
- Sprinkle in some extra context—images, resource links—to paint the full picture.

- A quick idea summary.
- What & why you wanted to add the specific feature.
- Additional context like images, links to resources to implement the feature etc, etc.
## Join Our Dance of Development 💃🕺

## Development Process
Pull requests are your golden ticket to propose changes! Directly submit your pull requests [here](https://github.com/WaifuAPI/Waifu.it/pulls). After a bit of magic in the review, your changes can become part of our enchanting project.

Pull requests are the best way to propose changes. We actively welcome your pull requests and invite you to submit pull requests directly <a href="https://github.com/WaifuAPI/Waifu.it/pulls">here</a>, and after review, these can be merged into the project.
## Crafting Pull Requests - Unleash Your Magic ✨

## Pull Requests
1. Fork the repo and weave your code into the `staging` branch.
2. If your code is a performer, let it showcase with some test examples.
3. Describe your pull request with the elegance it deserves.

1. Fork the repo and pr to `staging` branch only.
2. If you've added code that should be tested, add some test examples.
3. Ensure to describe your pull request.
## Issues - Illuminate the Path 🕯️

## Issues
When reporting issues, cast a clear light with your description. Show us how to find the bug by [opening a new issue](https://github.com/WaifuAPI/Waifu.it/issues); it's as simple as that!

Please ensure your description is
clear and has sufficient instructions to be able to reproduce the issue. Report a bug by <a href="https://github.com/WaifuAPI/Waifu.it/issues">opening a new issue</a>; it's that easy!

## Running the API Locally
## Magic Happens Locally - Run the API 🎩🐇

**Requirements**

- Node >= 12.x
- Node.js >=18.x
- MongoDB

**1. Create a database**
**1. Create a Database**

Create a MongoDB database.
Craft a MongoDB database. No worries if you don't have MongoDB locally; [MongoDB Atlas](https://www.mongodb.com/cloud/atlas) has a free hosted database waiting for you.

If you don't have MongoDB setup locally, then you can use [MongoDB Atlas][mongodb/atlas] to create a free hosted database.
**2. Enchant with Environment Variables**

**2. Environment Variables**
Craft a `.env` file in the project's magical realm. Copy the contents from `.env_example` and replace `<your-database-uri>` with your database connection string. Other mystical environment variables are revealed in the file.

You need to set the `MONGODB_URI` environment variable to point to your database.
```shell
MONGODB_URI=<your-mongodb-uri>
```

Create a file called `.env` in the root directory of the project. Copy everything from `.env_example` and replace `<your-database-uri>` with the connection string for your database, _other env variables info are commented in the file itself._
**3. Cast the Spell of Dependencies**

```shell
MONGODB_URI=<your-mongodb-uri>
$ npm install
```

**4. Begin the Incantation - Start the Server**

The server dances to your tune, restarting gracefully with every code change.

```shell
$ npm run dev
```

**And there you have it!**

## License - Let's Create a Masterpiece Together 🎨

By contributing to Waifu.it, you're authoring a chapter in our story. Your contributions will be elegantly licensed under the terms specified in the [LICENSE file](LICENSE.md).

Let the adventure begin! Explore the realms of Waifu.it, and let's co-create something truly magical! 🚀✨

**3. Installing dependencies**

```shell
Expand Down
64 changes: 24 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
## Announcements
## 🚀 Exciting News!

###### 🕛 23 May, 2023
### 📢 Migration from Private to Public
This repository will continue being as open-source while strictly following the [LICENCE](LICENCE.md).
### 📅 May 23, 2023

###### 🕛 01 Feb, 2022
### ~~📢 Migration from Public to Private~~
~~This repository will no longer be updated with the latest versions of code. Our hosted version of this API, [__Waifu.it__](https://waifu.it/) **does not run the code in this repository anymore**. The official API's source code has been made private. We will still maintain this repository over time with patches and so but it will depend on the circumstances. And we will only be providing limited, non-obligatory support to self-hosting users **who have not made changes to the code we deem to be significant**.~~
We're thrilled to announce a major transformation! Our repository is now fully open-source, embracing a new era of collaboration. Dive into the code, explore its possibilities, and contribute to the future of this amazing project. All within the bounds of our [LICENSE](LICENCE.md).

---

<div align="center">

<h1 align="center">Waifu.it</h1>
<h1 align="center">🎉 Waifu.it Unleashed!</h1>
<br />
<img align="center" width="256" height="256" src="https://avatars.githubusercontent.com/u/79479798?s=200&v=4" />
<br />
</div>

<div align="center">
<h3>A Random API Serving Anime Stuffs</h3>
<h3>🌟 <b>A Random API Serving Anime Wonders</b>
</h3>
<div align="center">
<img src="https://img.shields.io/github/contributors/WaifuAPI/Waifu.it?color=%236CB4EE" />
<img alt="GitHub issues" src="https://img.shields.io/github/issues/WaifuAPI/Waifu.it?color=%236CB4EE">
Expand All @@ -31,44 +28,31 @@ This repository will continue being as open-source while strictly following the

<hr />

# Contributing
# How You Can Contribute

All contributions are greatly appreciated, but I recommend creating an issue or replying in a comment to let me know what you are working on first that way we don't overwrite each other.
Your input is invaluable! Before diving in, let's sync up to avoid overlapping efforts.

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on this project.
## 🌈 Contribution Categories

## Issues
1. **Feature Requests/Enhancements**
2. **Bug Reports**
3. **Questions/Feedback**

- Feature requests/enhancements
- Bug reports
- Questions/feedback
## 🌿 Branching Strategy

## Branches
- **production:** The live, running version. Please refrain from direct changes.
- **staging:** All proposed changes go here. Submit a [pull request](https://help.github.com/en/articles/about-pull-requests) for review.

- production -> don't touch, this is what's running in production
## 🚀 Submitting Your Changes

- staging -> [pull request][pr] this branch for everything
1. **Fork** the repository on GitHub.
2. **Clone** your forked repo locally.
3. Make your changes and **commit** them.
4. **Push** your changes back to your fork.
5. When ready, create a [pull request](https://help.github.com/en/articles/about-pull-requests) for our review.

## Pull Requests

All pull requests are welcome!

- [Fork][fork] the repository on GitHub.

- [Clone][cloning] the forked repo to your local machine.

- Do you changes

- Commit your changes

- Push your changes back up to your fork.

- When you're ready, submit a [pull request][pr] so that we can review your changes.

## Documentation
---

[DOCS.md](DOCS.md)
Explore the [DOCS](DOCS.md) for detailed information.

[fork]: https://help.github.com/en/articles/fork-a-repo
[cloning]: https://help.github.com/en/articles/cloning-a-repository
[pr]: https://help.github.com/en/articles/about-pull-requests
Let's make Waifu.it even more fantastic together! 🌟

0 comments on commit 58639e5

Please sign in to comment.