Compare commits

..

2 commits

2 changed files with 22 additions and 1 deletions

View file

@ -32,3 +32,23 @@ Formats :
- `user` : `${firstname}.${lastname}` - `user` : `${firstname}.${lastname}`
- `user_subdomain` : `${firstname}-${lastname}` - `user_subdomain` : `${firstname}-${lastname}`
## Usage
1. Cloner le repo.
1. Lancer le serveur.
- Executer `deno task start` //Serveur sur le port 8000 par default.
- Ou, executer `PORT=7000 deno task start` //Spécifier le port d'écoute
désiré.
- Ou, utiliser le service définit dans
`cohabit/server_config/portfolio_server`.
## Contribution
1. Install [deno](https://deno.land).
1. Follow
[deno convention](https://docs.deno.com/runtime/manual/references/contributing/style_guide).
1. Follow
[conventional commits](https://www.conventionalcommits.org/en/v1.0.0/).
1. Follow [sermver](https://semver.org/lang/fr/).
1. Run and check `deno task check` before any commit.

View file

@ -3,7 +3,8 @@
"serve": "deno run --allow-net=\"https://git.cohabit.fr,localhost:$PORT,127.0.0.1:$PORT,0.0.0.0:$PORT\" --allow-env=PORT,COHABIT_GIT_URL,PORTFOLIO_BASE_URL ./server.ts", "serve": "deno run --allow-net=\"https://git.cohabit.fr,localhost:$PORT,127.0.0.1:$PORT,0.0.0.0:$PORT\" --allow-env=PORT,COHABIT_GIT_URL,PORTFOLIO_BASE_URL ./server.ts",
"test": "deno test --ignore=server.ts --allow-env=PORT,COHABIT_GIT_URL,PORTFOLIO_BASE_URL --doc", "test": "deno test --ignore=server.ts --allow-env=PORT,COHABIT_GIT_URL,PORTFOLIO_BASE_URL --doc",
"lint": "deno lint --ignore=docs", "lint": "deno lint --ignore=docs",
"doc": "deno doc --html --name='Portfolio Sever' ./src/*.ts" "doc": "deno doc --html --name='Portfolio Sever' ./src/*.ts",
"check": "deno task lint && deno task test && deno task doc"
}, },
"fmt": { "fmt": {
"singleQuote": true, "singleQuote": true,