You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/CONTRIBUTING.md
+21-7Lines changed: 21 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,8 @@
1
1
# Contributing - Developer Setup Guide
2
2
3
-
This repository contains two distinct projects, respectively, written in
3
+
This repository contains three distinct projects, respectively, written in
4
4
5
+
-[ReactJS](#reactjs-setup)
5
6
-[Python](#python-setup)
6
7
-[Terraform](#terraform-setup)
7
8
@@ -15,7 +16,7 @@ As a 1-person operation this project depends heavily on GitHub Actions to automa
15
16
16
17
- Code linting checks, during both pre-commit as well as triggered on pushes to the main branch
17
18
- Unit tests for Python, React and Terraform
18
-
- Semantic releases
19
+
- Semantic Version releases
19
20
- version bumps from npm, PyPi and Terraform Registry
20
21
21
22
A typical pull request will look like the following:
@@ -26,11 +27,13 @@ A typical pull request will look like the following:
26
27
27
28
This project uses pre-commit as a first-pass automated code review / QC process. pre-commit runs a multitude of utilities and checks for code formatting, linting, syntax checking, and ensuring that you don't accidentally push something to GitHub which you'd later regret. Broadly speaking, these checks are aimed at minimizing the extent of commits that contain various kinds of defects and stylistic imperfections that don't belong on the main branch of the project.
28
29
29
-
Note that many of the pre-commit commands are actually executed by Python which in turn is calling pip-installed packages listed in requirements.txt located in the root of the repo. It therefore is important that you first create the Python virtual environment using `make init`. It also is a good idea to do a complete 'dry run' of pre-commit, to ensure that your developer environment is correctly setup:
30
+
Note that many of the pre-commit commands are actually executed by Python which in turn is calling pip-installed packages listed in requirements.txt located in the root of the repo. It therefore is important that you first create the Python virtual environment using `make api-init`. It also is a good idea to do a complete 'dry run' of pre-commit, to ensure that your developer environment is correctly setup:
30
31
31
32
```console
32
33
git pull
33
-
make pre-commit
34
+
make api-init
35
+
pre-commit autoupdate
36
+
pre-commit run --all-files
34
37
```
35
38
36
39
Output should look similar to the following:
@@ -53,19 +56,30 @@ Note that this project leverages Dependabot for managing version numbers of all
53
56
54
57
```console
55
58
git pull
56
-
make init
59
+
make api-init
57
60
source venv/bin/activate
58
61
```
59
62
63
+
## ReactJS Setup
64
+
65
+
Please refer to this detailed [ReactJS setup guide](./client/README.md) for how to use vite.js to initialize the ReactJS development environment.
66
+
67
+
Note that this project leverages Dependabot for managing version numbers of all NPM packages that are used in this project, regardless of where and how. Versions should always be up to date at the moment that you clone the repo. It therefore should never be necessary for you to manually bump package.json version numbers.
68
+
69
+
```console
70
+
git pull
71
+
make client-init
72
+
```
73
+
60
74
## Terraform Setup
61
75
62
-
Please refer to this [Terraform setup guide](https://github.com/FullStackWithLawrence/aws-openai/blob/main/doc/img/TERRAFORM.md) for detailed instructions.
76
+
Please refer to this [Terraform setup guide](../api/README.md) for detailed instructions.
63
77
64
78
Note that this project leverages Dependabot for managing version numbers of all Terraform modules that are used in this project. Versions should always be up to date at the moment that you clone the repo. It therefore should never be necessary for you to manually bump module version numbers.
0 commit comments