Skip to content

Commit ad1abd7

Browse files
committed
Improve readme; add local dev helper; fix ant-d 4 changes
1 parent 7f7c315 commit ad1abd7

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,14 @@ Answer the prompts with your own desired options. Here's an explanation of each.
4949

5050
### Dependencies
5151
- `sentry_dsn`: You'll want to set up a sentry account and copy your sentry dsn value here, it will look like: "https://19d74ebe3b174d379fbcb96310129b6b@sentry.io/1827306",
52+
53+
54+
## Developing this Cookiecutter
55+
56+
You may find it useful to run
57+
58+
```sh
59+
./dev-quickstart.sh
60+
```
61+
62+
in order to get an example of the current cookiecutter w/ defaults locally.

dev-quickstart.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
# This command is for easily generating a baked version of cookiecutter and
4+
# starting docker-compose
5+
6+
rm -rf graphql_django_apollo_starter
7+
cookiecutter --no-input .
8+
cd graphql_django_apollo_starter
9+
cp client/.env.example client/.env
10+
cp .env.example .env
11+
docker-compose down -v; docker-compose build; docker-compose up -d
12+
npm install

{{ cookiecutter.project_slug }}/client/src/components/Login.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ export const Login: React.FC<LoginProps> = ({ navigate }) => {
4040
<Form
4141
labelCol={itemLayout.labelCol}
4242
wrapperCol={itemLayout.wrapperCol}
43-
onFinish={e => {
44-
e.preventDefault();
43+
onFinish={() => {
4544
tokenAuth();
4645
}}
4746
>

{{ cookiecutter.project_slug }}/client/src/components/Signup.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ export const Signup: React.FC<RouteComponentProps<SignupFormProps>> = (
5959
return (
6060
<Form
6161
layout="horizontal"
62-
onSubmit={e => {
63-
e.preventDefault();
62+
onFinish={() => {
6463
createUser();
6564
}}
6665
labelCol={itemLayout.labelCol}

0 commit comments

Comments
 (0)