-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: improve contributing docs and simplify readme
- Loading branch information
Showing
3 changed files
with
63 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,65 @@ | ||
## Commit guidelines | ||
# Table of contents | ||
|
||
This project *strictly* follows [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/). | ||
Check out [their explanation](https://www.conventionalcommits.org/en/v1.0.0/#summary) of how to use it. | ||
In this project we have the following scopes / types: | ||
Welcome to ocular—a small budgeting app as an alternative to Google sheet's annual budget planner. | ||
Every contribution is welcome, no matter if it's a bug report, a feature request, or a pull request. | ||
Make sure to check out the guidelines below before you start to make sure everything goes smoothly :) | ||
|
||
- [Table of contents](#table-of-contents) | ||
- [Development](#development) | ||
- [Setup](#setup) | ||
- [Commit guidelines](#commit-guidelines) | ||
- [Adding support for a new language](#adding-support-for-a-new-language) | ||
- [Adding support for a new currency](#adding-support-for-a-new-currency) | ||
- [Adding a new feature](#adding-a-new-feature) | ||
|
||
# Development | ||
|
||
## Setup | ||
|
||
Make sure you have the following installed: | ||
|
||
- [Node.js](https://nodejs.org/en/) (LTS version) | ||
- [Docker](https://www.docker.com/) (for the backend) | ||
- [pnpm](https://pnpm.io/) (for package management) | ||
|
||
After you've installed the required software, follow these steps: | ||
|
||
1. Clone this repository via `git clone https://github.com/simonwep/ocular`. | ||
2. Run `pnpm install` in the root directory. | ||
3. Copy the `.env.example` to `.env`, you can leave the default values. | ||
4. Start the backend with `pnpm run genesis`. | ||
5. Start the frontend with `pnpm run dev`. | ||
6. Open `http://localhost:3000` in your browser. | ||
|
||
### Scopes | ||
You're now ready to start developing 🚀 | ||
|
||
* `core` - Core code, anything app / user-facing related. | ||
* `setup` - Anything *only* relevant to the build-process / CI. | ||
## Commit guidelines | ||
|
||
This project *strictly* follows [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/). | ||
Check out [their explanation](https://www.conventionalcommits.org/en/v1.0.0/#summary) in case you're not familiar with it. | ||
|
||
### Types | ||
Since this project's scope is rather small, we only use types to categorize our commits: | ||
|
||
* `feat` - A new feature. | ||
* `refactor` - A refactoring. | ||
* `chore` - A small task that doesn't add any new features or fix any bugs. | ||
* `refactor` - A code change that neither fixes a bug nor adds a feature. | ||
* `fix` - A bug fix. | ||
* `docs` - Documentation only. | ||
* `improve` - Nothing changed, only improved (such as performance improvements). | ||
|
||
* `docs` - Documentation only changes. | ||
|
||
## Adding support for a new language | ||
|
||
To add support for a new language, you need to do the following: | ||
|
||
1. Add a new file under `src/i18n/locales` with the language code as the filename (e.g. `en.json`). | ||
2. Import the file from step 1. in `src/i18n/index.ts` and add it to `messages`. | ||
1. Add a new file under [`src/i18n/locales`](../src/i18n/locales) with the language code as the filename (e.g. `en.json`). | ||
2. Import the file from step 1. in [`src/i18n/index.ts`](../src/i18n/index.ts) and add it to the `messages` constant. | ||
|
||
## Adding support for a new currency | ||
|
||
To add support for a new currency, you need to do the following: | ||
|
||
1. Add your currency code to [src/store/state/types.ts](../src/store/state/types.ts) to both `availableCurrencies` and `AvailableCurrency`. | ||
|
||
## Adding a new feature | ||
|
||
If you want to add a new feature, make sure to [create an issue](https://github.com/simonwep/ocular/issues/new/choose) first to discuss it, so we can make sure it fits the project's scope. | ||
I appreciate every contribution, but I want to keep the project focused on its main goal. |
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