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
* proposal config syntax for package support
* renamed config files
* updated command
* moved create command implementation into new context package
* consolidated configs and cleaned up util logs
* refactored to remove templators
* generating example commit0.yml on create
* updated reference docs
As there alot of dependencies it will be easier to use this tool within the provided image, clone the repo and then run `make build-docker-local`.
20
+
As there some dependencies it will be easier to use this tool within the provided image, clone the repo and then run `make build-docker-local`.
19
21
The best way then to use this is to add an alias, then you can use the CLI as if it was installed as usual on your machine:
20
22
`alias commit0='docker run -it -v "$(pwd):/project" -v "${HOME}/.aws:/root/.aws" commit0:v0'`
21
23
22
24
## Usage
23
25
24
26
1) To create a project run `commit0 create [PROJECT_NAME]`
25
-
2) A folder will be created and within that update the `commit0.yml` and then run `commit0 generate -c <commit0.yml>`
26
-
3) You will see that there is now an idl folder created.
27
-
4) Within the idl folder modify the the protobuf services generated with your desired methods
28
-
5) Go up to the parent directory and re run `commit0 generate -c <commit0.yml>`
29
-
6) You will now see a `server` folder navigate to your service folder within that directory and implement the methods generated for it
30
-
7) Once you have tested your implementation and are happy with it return to the idl repo push that directory up to git
31
-
8) Return to the parent directory and check the depency file, for go it will be the go.mod file remove the lines that point it to your local directory, this will now point it to the version on git that was pushed up previously
32
-
10) Test and push up your implementation!
33
-
9) When you feel the need to add more services add them to the commit0 config and re-run `commit0 generate` and repeat steps 4 - 7.
34
-
35
-
36
-
## What does it generate?
37
-
38
-
The generation will create project folder, within this there will be your implementation and an IDL folder
39
-
40
-
* A parent directory that implements a skeleton and sets up your service implementation of the generated artifacts
41
-
* A child directory for the IDL's, this folder will also contain generated artifacts from the IDL under 'gen'
42
-
43
-
Based on specified config it will generate:
44
-
* Proto files [Done]
45
-
* Proto libraries [Done]
46
-
* GraphQL files [Later]
47
-
* GraphQL libraries [Later]
48
-
* grpc web [Partial - Libraries generates for typescript]
0 commit comments