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: CHANGELOG.md
+8-2
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,23 @@
2
2
3
3
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
| apollo:download| npx apollo service:download --endpoint=http://localhost:3000/api/graphql graphql-schema.json | download a graphql schema from an endpoint |
54
56
| apollo:generate| npx apollo codegen:generate types --localSchemaFile=graphql-schema.json --target=typescript --tagName=gql --outputFlat --tsFileExtension=d.ts | use for generating typing files from a graphql schema |
57
+
| ts-node | ts-node --compiler-options '{\"module\":\"CommonJS\"}' | use by prisma:seed|
| prepare | husky install | This is needed from husky to set up the project |
57
63
@@ -61,6 +67,7 @@ This project is build with :
61
67
62
68
-[NextJs](https://nextjs.org/)
63
69
-[Apollo](https://www.apollographql.com/)
70
+
-[prisma](https://www.prisma.io/)
64
71
-[Tailwindcss](https://tailwindcss.com/)
65
72
-[Typescript](https://www.typescriptlang.org/)
66
73
-[react-intl](https://formatjs.io/)
@@ -110,12 +117,39 @@ Given the [conventionalcommits](https://www.conventionalcommits.org/en/v1.0.0/):
110
117
[optional footer(s)]
111
118
```
112
119
120
+
## Setting up your own database (e.g. PostgreSQL, MySQL, SQL Server)
121
+
122
+
If you want to use another database than PostgreSQL, you can adjust the database connection in [`prisma/schema.prisma`](hhttps://github.com/FabienGreard/kirby-boilerplate/tree/main/prisma/schema.prisma) by reconfiguring the datasource block.
123
+
124
+
Learn more about the different connection configurations in the [docs](https://www.prisma.io/docs/reference/database-reference/connection-urls).
125
+
126
+
At this point your should be able to execute `yarn prisma:migrate` or `npm run prisma:migrate` to initialise your database with the base schema.
127
+
128
+
You could also seed your database with `yarn prisma:seed` or `npm run prisma:seed`.
129
+
113
130
## Generate typing from graphql schema
114
131
115
132
You may need to look at [apollo-tooling](https://github.com/apollographql/apollo-tooling)
116
133
117
134
With the graphql endpoint running launch `yarn apollo:download` follow by `yarn apollo:generate`, this will create under `types` a typing file for each query under `apollo/operations`.
118
135
136
+
## Hosting
137
+
138
+
Kirby use [vercel](https://vercel.com/docs) however you can use any other hosting service.
139
+
140
+
## Roadmap:
141
+
142
+
(Would love Pull requests that build towards these objectives)
143
+
144
+
-[ ] Add a CLI installer like cra / cna
145
+
-[ ] Multiple install with opt-out feature e.f without apollo, with monorepo etc...
146
+
-[ ] Monorepo
147
+
-[ ] Without server / api (remove apollo)
148
+
-[ ] More installer ??
149
+
-[ ] Better doc ?
150
+
-[ ] Feature projects build with Kirby
151
+
-[ ] Feature contributors
152
+
119
153
## Contributing
120
154
121
155
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
0 commit comments