Skip to content

Commit

Permalink
feat(api): add project
Browse files Browse the repository at this point in the history
  • Loading branch information
geromegrignon committed Dec 7, 2022
1 parent fe46d02 commit d895173
Show file tree
Hide file tree
Showing 102 changed files with 50,982 additions and 21,089 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
}
]
}
]
],
"@typescript-eslint/ban-ts-comment": "off"
}
},
{
Expand Down
60 changes: 30 additions & 30 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: 🐞 Bug report
description: Report a bug in the RealWorld project
title: '[Bug]: '
labels:
- bug
assignees:
- geromegrignon
body:
- type: dropdown
attributes:
label: Relevant scope
description: What is the scope of this request?
options:
- Frontend specs
- Backend specs
- Deployed demo
- 'Other: describe below'
validations:
required: true
- type: textarea
attributes:
label: Description
description: A clear and concise description of the problem
validations:
required: true
- type: markdown
attributes:
value: >-
This template was generated with [Issue Forms
Creator](https://www.issue-forms-creator.app/)
name: 🐞 Bug report
description: Report a bug in the RealWorld project
title: '[Bug]: '
labels:
- bug
assignees:
- geromegrignon
body:
- type: dropdown
attributes:
label: Relevant scope
description: What is the scope of this request?
options:
- Frontend specs
- Backend specs
- Deployed demo
- 'Other: describe below'
validations:
required: true
- type: textarea
attributes:
label: Description
description: A clear and concise description of the problem
validations:
required: true
- type: markdown
attributes:
value: >-
This template was generated with [Issue Forms
Creator](https://www.issue-forms-creator.app/)
76 changes: 38 additions & 38 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name: 🚀 Feature request
description: Suggest a feature for RealWorld project
title: '[Feature Request]:'
assignees:
- geromegrignon
body:
- type: markdown
attributes:
value: '# Feature Request'
- type: dropdown
attributes:
label: Relevant Scope
description: What is the scope of this request?
options:
- Frontend specs
- Backend specs
- 'Other: describe below'
validations:
required: true
- type: textarea
attributes:
label: Description
description: ' <!-- ✍️--> '
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like
description: If you have a solution in mind, please describe it.
- type: textarea
attributes:
label: Describe alternatives you've considered
description: Have you considered any alternative solutions or workarounds?
- type: markdown
attributes:
value: >-
This template was generated with [Issue Forms
Creator](https://www.issue-forms-creator.app/)
name: 🚀 Feature request
description: Suggest a feature for RealWorld project
title: '[Feature Request]:'
assignees:
- geromegrignon
body:
- type: markdown
attributes:
value: '# Feature Request'
- type: dropdown
attributes:
label: Relevant Scope
description: What is the scope of this request?
options:
- Frontend specs
- Backend specs
- 'Other: describe below'
validations:
required: true
- type: textarea
attributes:
label: Description
description: ' <!-- ✍️--> '
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like
description: If you have a solution in mind, please describe it.
- type: textarea
attributes:
label: Describe alternatives you've considered
description: Have you considered any alternative solutions or workarounds?
- type: markdown
attributes:
value: >-
This template was generated with [Issue Forms
Creator](https://www.issue-forms-creator.app/)
8 changes: 3 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
## PR Checklist

Please check if your PR fulfills the following requirements:

- [ ] The commit message follows our guidelines: https://github.com/gothinkster/realworld/blob/master/CONTRIBUTING.md#commit

## PR Type

What kind of change does this PR introduce?

<!-- Please check the one that applies to this PR using "x". -->
Expand All @@ -12,23 +14,19 @@ What kind of change does this PR introduce?
- [ ] Feature
- [ ] Other... Please describe:


## What is the current behavior?

<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->

Issue Number: N/A


## What is the new behavior?


## Does this PR introduce a breaking change?

- [ ] Yes
- [ ] No


<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->


## Other information
26 changes: 10 additions & 16 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
open-pull-requests-limit: 10

- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10

- package-ecosystem: npm
directory: "/documentation"
schedule:
interval: weekly
open-pull-requests-limit: 10
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
open-pull-requests-limit: 10
34 changes: 34 additions & 0 deletions .github/workflows/api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches:
- '**'

jobs:
run_tests:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
- name: Install dependencies
run: npm ci --no-audit --prefer-offline --progress=false
- name: Check prettier
run: npm run prettier:check
- name: Check ESLinter
run: npm run lint:check
- name: Check unit tests
run: npm run test --ci --lastCommit --maxWorkers=50%
env:
CI: true
12 changes: 4 additions & 8 deletions .github/workflows/test-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
cache: 'npm'
- name: Install dependencies
run: npm ci --no-audit --prefer-offline --progress=false
- name: Build production bundle
uses: borales/actions-yarn@v4
with:
cmd: nx build documentation
run: npx nx build documentation
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
dist
tmp
/out-tsc
_generated_

# Keep environment variables out of version control
.env

# dependencies
node_modules
.yarn/*
!.yarn/releases
!.yarn/plugins
.pnp.*

# IDEs and editors
/.idea
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.prettierignore
.docusaurus/
.docusaurus/
/dist
6 changes: 5 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"singleQuote": true
"printWidth": 100,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "avoid"
}
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
16 changes: 8 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ Before you submit your Pull Request (PR) consider the following guidelines:

- If we suggest changes then:

- Make the required updates.
- Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
- Make the required updates.
- Rebase your branch and force push to your GitHub repository (this will update your Pull Request):

```bash
git rebase master -i
git push -f
```
```bash
git rebase master -i
git push -f
```

That's it! Thank you for your contribution!
Expand Down Expand Up @@ -127,7 +127,6 @@ from the master (upstream) repository:
## <a name="commit"></a> Commit Message Guidelines
> These guidelines have been added to the project starting from <include date>
>
We have very precise rules over how our git commit messages can be formatted. This leads to **more
readable messages** that are easy to follow when looking through the **project history**.
Expand Down Expand Up @@ -167,6 +166,7 @@ The version in our package.json gets copied to the one we publish, and users nee
### Type
Must be one of the following:
- **docs**: Documentation only changes
- **feat**: A new feature
- **fix**: A bug fix
Expand Down Expand Up @@ -207,7 +207,7 @@ Close #394
```
```
BREAKING CHANGE:
BREAKING CHANGE:
change login route to /users/login
```
Expand Down
Loading

0 comments on commit d895173

Please sign in to comment.