mirror of https://github.com/01-edu/public.git
Use ((VARIABLE)) instead of {{VARIABLE}} because of Jekyll/GitHub Pages
This commit is contained in:
parent
4eb360e46a
commit
18d0c9953a
|
@ -69,12 +69,12 @@ In the step object you have created, 2 attributes must be filled:
|
||||||
- `onChange` prop are ignored as the event is handled by the app.
|
- `onChange` prop are ignored as the event is handled by the app.
|
||||||
- For `switch` and `checkbox` input types, the default value has to be set as a boolean property named **value**.
|
- For `switch` and `checkbox` input types, the default value has to be set as a boolean property named **value**.
|
||||||
- More information for each inputs is available in the design documentation:
|
- More information for each inputs is available in the design documentation:
|
||||||
- [textInput documentation](https://{{DOMAIN}}/docs/Components/FormInputs/TextInput) - used for inputs type 'text', 'tel', and 'date'
|
- [textInput documentation](<https://((DOMAIN))/docs/Components/FormInputs/TextInput>) - used for inputs type 'text', 'tel', and 'date'
|
||||||
- [textArea documentation](https://{{DOMAIN}}/docs/Components/FormInputs/TextArea)
|
- [textArea documentation](<https://((DOMAIN))/docs/Components/FormInputs/TextArea>)
|
||||||
- [select documentation](https://{{DOMAIN}}/docs/Components/FormControls/Select)
|
- [select documentation](<https://((DOMAIN))/docs/Components/FormControls/Select>)
|
||||||
- [radio button documentation](https://{{DOMAIN}}/docs/Components/FormControls/Radio)
|
- [radio button documentation](<https://((DOMAIN))/docs/Components/FormControls/Radio>)
|
||||||
- [switch documentation](https://{{DOMAIN}}/docs/Components/FormControls/Switch)
|
- [switch documentation](<https://((DOMAIN))/docs/Components/FormControls/Switch>)
|
||||||
- [checkbox documentation](https://{{DOMAIN}}/docs/Components/FormControls/Checkbox)
|
- [checkbox documentation](<https://((DOMAIN))/docs/Components/FormControls/Checkbox>)
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ One domain and one subdomain must point to the IP address of a [dedicated server
|
||||||
|
|
||||||
| FQDN | Record type | Address |
|
| FQDN | Record type | Address |
|
||||||
| -------------- | ----------- | ------- |
|
| -------------- | ----------- | ------- |
|
||||||
| {{DOMAIN}} | A | X.X.X.X |
|
| ((DOMAIN)) | A | X.X.X.X |
|
||||||
| git.{{DOMAIN}} | A | X.X.X.X |
|
| git.((DOMAIN)) | A | X.X.X.X |
|
||||||
|
|
||||||
## Network configuration
|
## Network configuration
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ Create a file `myfamily.sh`, which will show a subject's family (key: relatives)
|
||||||
|
|
||||||
- The subject will be decided depending on his ID which will be contained in the environment variable HERO_ID.
|
- The subject will be decided depending on his ID which will be contained in the environment variable HERO_ID.
|
||||||
|
|
||||||
* Where to look : https://{{DOMAIN}}/assets/superhero/all.json
|
* Where to look : https://((DOMAIN))/assets/superhero/all.json
|
||||||
|
|
||||||
* What to use : curl, jq and others...
|
* What to use : curl, jq and others...
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ for example: [github-pages](https://pages.github.com/), [netlify](https://www.ne
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
> To test your queries you can access the GraphQL IDE on _https://{{DOMAIN}}/public/subjects/graphql/_ or create your own [**GraphiQL Docs**](https://github.com/graphql/graphiql). This will give you a bigger picture of the tables, attributes and all the types of queries that you can do.
|
> To test your queries you can access the GraphQL IDE on _https://((DOMAIN))/public/subjects/graphql/_ or create your own [**GraphiQL Docs**](https://github.com/graphql/graphiql). This will give you a bigger picture of the tables, attributes and all the types of queries that you can do.
|
||||||
|
|
||||||
Here are the list of tables that you are allowed to query (it will be only provided the columns present on the tables):
|
Here are the list of tables that you are allowed to query (it will be only provided the columns present on the tables):
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ you could just add this attribute to the query, example:
|
||||||
|
|
||||||
You can try to `curl` the API endpoint to see the result given by the server:
|
You can try to `curl` the API endpoint to see the result given by the server:
|
||||||
|
|
||||||
- `curl "https://{{DOMAIN}}/api/graphql-engine/v1/graphql" --data '{"query":"{user{id login}}"}'`
|
- `curl "https://((DOMAIN))/api/graphql-engine/v1/graphql" --data '{"query":"{user{id login}}"}'`
|
||||||
|
|
||||||
Here is another example of a query using the table `user`:
|
Here is another example of a query using the table `user`:
|
||||||
|
|
||||||
|
@ -150,9 +150,9 @@ Here is another example of a query using the table `user`:
|
||||||
|
|
||||||
You can see the result using `curl`:
|
You can see the result using `curl`:
|
||||||
|
|
||||||
- `curl "https://{{DOMAIN}}/api/graphql-engine/v1/graphql" --data '{"query":"{user(where:{id:{_eq:6}}){id login}}"}'`
|
- `curl "https://((DOMAIN))/api/graphql-engine/v1/graphql" --data '{"query":"{user(where:{id:{_eq:6}}){id login}}"}'`
|
||||||
|
|
||||||
In graphQL the usage of arguments can be specified in the schema of the API. Like said above you can visit the _docs_ for the graphQL endpoint, _https://{{DOMAIN}}/public/subjects/grapqhl_
|
In graphQL the usage of arguments can be specified in the schema of the API. Like said above you can visit the _docs_ for the graphQL endpoint, _https://((DOMAIN))/public/subjects/grapqhl_
|
||||||
|
|
||||||
Example of nesting, using the result and user table :
|
Example of nesting, using the result and user table :
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ executed.
|
||||||
### Instructions
|
### Instructions
|
||||||
|
|
||||||
Once you have installed and configured the necessary tools,
|
Once you have installed and configured the necessary tools,
|
||||||
create a `git` repository named `{{ROOT}}` with a `hello-there.js`
|
create a `git` repository named `((ROOT))` with a `hello-there.js`
|
||||||
JS file that is a program that displays the exact text `Hello There !`, any `Number` and a
|
JS file that is a program that displays the exact text `Hello There !`, any `Number` and a
|
||||||
`Boolean`.
|
`Boolean`.
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ Make sure those rules are followed consistenly during the whole piscine.
|
||||||
|
|
||||||
#### 1- get-ready
|
#### 1- get-ready
|
||||||
|
|
||||||
Create in your [Gitea](https://git.{{DOMAIN}}) account the repository named `{{ROOT}}`.
|
Create in your [Gitea](<https://git.((DOMAIN))>) account the repository named `((ROOT))`.
|
||||||
|
|
||||||
This repository will be the folder where all the exercices must be uploaded.
|
This repository will be the folder where all the exercices must be uploaded.
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ Once created, clone that repository on your desktop.
|
||||||
|
|
||||||
If your username was `choumi` this is the command that will need to be used :
|
If your username was `choumi` this is the command that will need to be used :
|
||||||
|
|
||||||
`git clone git@git.{{DOMAIN}}:choumi/{{ROOT}}.git`
|
`git clone git@git.((DOMAIN)):choumi/((ROOT)).git`
|
||||||
|
|
||||||
This command needs to be adapted with **your own username**.
|
This command needs to be adapted with **your own username**.
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ''
|
||||||
cat ~/.ssh/id_ed25519.pub
|
cat ~/.ssh/id_ed25519.pub
|
||||||
```
|
```
|
||||||
|
|
||||||
- Copy the result and paste it in the content field of adding an SSH key in your [Gitea settings](https://git.{{DOMAIN}}/user/settings/keys)
|
- Copy the result and paste it in the content field of adding an SSH key in your [Gitea settings](<https://git.((DOMAIN))/user/settings/keys>)
|
||||||
|
|
||||||
- Confirm by clicking on the add key button.
|
- Confirm by clicking on the add key button.
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,6 @@ and you should see your hello world.
|
||||||
|
|
||||||
Great ! you are all set, if you want to re-execute your script, just refresh.
|
Great ! you are all set, if you want to re-execute your script, just refresh.
|
||||||
|
|
||||||
You now just have to create a repository named `{{ROOT}}`,
|
You now just have to create a repository named `((ROOT))`,
|
||||||
which will hold all your solutions for this piscine
|
which will hold all your solutions for this piscine
|
||||||
and just add your 2 generated files to it, we will start slow for now... 🐢
|
and just add your 2 generated files to it, we will start slow for now... 🐢
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#### 1- get-ready
|
#### 1- get-ready
|
||||||
|
|
||||||
Create in your [Gitea](https://git.{{DOMAIN}}) account the repository named `{{ROOT}}`.
|
Create in your [Gitea](<https://git.((DOMAIN))>) account the repository named `((ROOT))`.
|
||||||
|
|
||||||
This repository will be the folder where all the exercices must be uploaded.
|
This repository will be the folder where all the exercices must be uploaded.
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ Once created, clone that repository on your desktop.
|
||||||
|
|
||||||
If your username was `choumi` this is the command that will need to be used :
|
If your username was `choumi` this is the command that will need to be used :
|
||||||
|
|
||||||
`git clone git@git.{{DOMAIN}}:choumi/{{ROOT}}.git`
|
`git clone git@git.((DOMAIN)):choumi/((ROOT)).git`
|
||||||
|
|
||||||
This command needs to be adapted with **your own username**.
|
This command needs to be adapted with **your own username**.
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ''
|
||||||
cat ~/.ssh/id_ed25519.pub
|
cat ~/.ssh/id_ed25519.pub
|
||||||
```
|
```
|
||||||
|
|
||||||
- Copy the result and paste it in the content field of adding an SSH key in your [Gitea settings](https://git.{{DOMAIN}}/user/settings/keys)
|
- Copy the result and paste it in the content field of adding an SSH key in your [Gitea settings](<https://git.((DOMAIN))/user/settings/keys>)
|
||||||
|
|
||||||
- Confirm by clicking on the add key button.
|
- Confirm by clicking on the add key button.
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ Only the numbers will appear.
|
||||||
Here is the base command that needs to be adapted with your username and more :
|
Here is the base command that needs to be adapted with your username and more :
|
||||||
|
|
||||||
```
|
```
|
||||||
curl -s https://{{DOMAIN}}/api/graphql-engine/v1/graphql --data '{"query":"{user(where:{login:{_eq:\"choumi\"}}){id}}"}'
|
curl -s https://((DOMAIN))/api/graphql-engine/v1/graphql --data '{"query":"{user(where:{login:{_eq:\"choumi\"}}){id}}"}'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
|
@ -8,6 +8,6 @@ The only thought that comes to your mind is a tag that says: `subject Id: 70`"
|
||||||
|
|
||||||
Create the file `who-are-you.sh` which will remind you who you are by showing your name only.
|
Create the file `who-are-you.sh` which will remind you who you are by showing your name only.
|
||||||
|
|
||||||
- Where to look : https://{{DOMAIN}}/assets/superhero/all.json
|
- Where to look : https://((DOMAIN))/assets/superhero/all.json
|
||||||
|
|
||||||
- What to use : `curl` and `jq`
|
- What to use : `curl` and `jq`
|
||||||
|
|
Loading…
Reference in New Issue