Skip to content

Commit

Permalink
[SOA-13] Configure commitizen and add readme (#14)
Browse files Browse the repository at this point in the history
* chore πŸ—οΈ (config): add commitizen rules

* chore πŸ—οΈ (docs): add initial README
  • Loading branch information
mariadriana-deemaze authored Nov 7, 2024
1 parent 1a95208 commit 3295ab8
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 0 deletions.
9 changes: 9 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2023 Maria Adriana

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Social Adonis

An exploratory hobby project that serves, to me, as an introduction to the combo of AdonisJS v6 + React via Inertia development conventions. The original product premise is to be a social media platform, with the intent of growing it organically, as time fits.

### Project run

1) Create a `.env` file, based of the `.env.example`, and customize the values as fitting for your local development environment.

```bash
$ cp .env.example .env
```

2) Install dependencies.

```bash
$ yarn
```

3) Run development.

```bash
$ yarn dev
```

### Implemented main features
- Basic authentication;
- User feed;
- User posting CRUD;

### Future roadmap
Have planned a general gist on what I would like to shape it in the near future, publically visible in [board](https://github.com/users/mariadriana-deemaze/projects/2) here.

### Commit
The project is following the general guidance of commitizen rules, customizly adapted as per defined in the `cz.json` file.
To proceed with a project contribution, make sure to have globally enabled in your machine the [commitizen-cli](https://www.npmjs.com/package/commitizen).

Then simply type in your terminal the following command, and follow along the configured prompts.

```bash
$ cz c
```
86 changes: 86 additions & 0 deletions cz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"commitizen": {
"name": "cz_customize",
"tag_format": "$version",
"version_scheme": "semver",
"version_provider": "npm",
"customize": {
"message_template": "{{change_type}} {% if context %}({{context}}){% endif %}: {{ message }}",
"example": "feat(ui): add a shiny new feature",
"schema": "<type>(<context>): <body>",
"schema_pattern": "(feat|fix|styles|refactor|perf|test|chore):(\\s.*)",
"bump_pattern": "^(break|new|fix|hotfix)",
"bump_map": {
"break": "MAJOR",
"new": "MINOR",
"fix": "PATCH"
},
"change_type_order": [
"BREAKING CHANGE",
"feat",
"fix",
"refactor",
"perf",
"chore"
],
"info_path": "cz_customize_info.txt",
"info": "This is customized info",
"commit_parser": "^(?P<change_type>feat|fix|styles|refactor|perf|test|chore(deps)|chore(config)):\\s(?P<message>.*)?",
"change_type_map": {
"feat": "Feat",
"fix": "Fix",
"refactor": "Refactor",
"perf": "Performance",
"test": "Test",
"chore": "Chore"
},
"questions": [
{
"type": "list",
"name": "change_type",
"choices": [
{
"value": "feat 🎸",
"name": "feat 🎸: added a new feature."
},
{
"value": "fix βœ…",
"name": "fix βœ…: added a bug fix."
},
{
"value": "styles πŸ’…",
"name": "styles πŸ’…: edited some UI styles or other general styling config."
},
{
"value": "refactor ✨",
"name": "refactor: refactored code that does not affect feature."
},
{
"value": "perf ⚑️",
"name": "perf ⚑️: made a performance inprovement."
},
{
"value": "test πŸ§ͺ",
"name": "test πŸ§ͺ: added tests."
},
{
"value": "chore πŸ—οΈ",
"name": "chore πŸ—οΈ: added or bumped dependencies."
}
],
"message": "Select the type of change you are committing"
},
{
"type": "input",
"name": "context",
"message": "Do you want to add additional context?"
},
{
"type": "input",
"name": "message",
"message": "Body."
}
]
}
}
}

0 comments on commit 3295ab8

Please sign in to comment.