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
* add users router and a basic fetch all users test
* add helper script for testing and get alembic migrations working with get_users test
* add ability to create users and add hashed passwords
* fix being able to see the user list
* add link to admin page and some more readme docs
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+11-1
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
## Development
4
4
5
+
### Helper Scripts
5
6
You can use the helper script `scripts/dev-project.sh` to create a cookiecutter
6
7
project to test locally. Do this from outside of the root directory to avoid
7
8
accidentally commiting test builds. For example:
@@ -15,6 +16,11 @@ cd dev-fastapi-react
15
16
docker-compose up -d
16
17
```
17
18
19
+
When developing locally, there is also a helper script that will create a cookiecutter directory, build containers, and run tests all from within the root project directory. This can be kind of a tedious process with cookiecutter so this makes it somewhat less painful. From the root `fastapi-react` directory, simply run:
20
+
```bash
21
+
./scripts/test_local.sh
22
+
```
23
+
18
24
## Pull Requests
19
25
20
26
Use the general [feature branch
@@ -26,4 +32,8 @@ Try to keep PRs as small and focused as possible. If you are making a big
26
32
breaking change in production and don't want to expose half finished
27
33
functionality to users, you can use [feature
28
34
flags](https://www.martinfowler.com/articles/feature-toggles.html) to work on
29
-
this incrementally. A big PR is much less likely to be approved
35
+
this incrementally. A big PR is much less likely to be approved
36
+
37
+
## Which issues to start with?
38
+
39
+
Start by browsing through the [list of issues](https://github.com/Buuntu/fastapi-react/issues), particularly those flagged as [help wanted](https://github.com/Buuntu/fastapi-react/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)
Copy file name to clipboardexpand all lines: {{cookiecutter.project_slug}}/README.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,19 @@ The only dependencies for this project should be docker and docker-compose.
21
21
Starting the project with hot-reloading enabled
22
22
(the first time it will take a while):
23
23
24
-
```
24
+
```bash
25
25
docker-compose up -d
26
26
```
27
27
28
+
To run the alembic migrations (for the users table):
29
+
```bash
30
+
docker-compose run --rm backend alembic upgrade head
31
+
```
32
+
28
33
And navigate to http://localhost:{{cookiecutter.port}}
29
34
35
+
*Note: If you see an Nginx error at first with a `502: Bad Gateway` page, you may have to wait for webpack to build the development server (the nginx container builds much more quickly).*
0 commit comments