nestjs starter
1.0.0
使用此模板
它有
下面的部署可能處於睡眠模式,打開它們時將需要一分鐘的時間才能上網。
cp .env.example .env
docker-compose up
docker-compose exec web yarn lint
docker-compose exec web yarn test
docker-compose exec web yarn test:request
docker-compose exec web yarn build
docker run -it -v $PWD :/e2e -w /e2e --network= " host " --entrypoint=cypress cypress/included:12.2.0 run通過巢的休息端點
通過NEST
GraphQl Playground( query WhoAmI是JWT保護的)
query Public {
things {
id
name
}
users {
id
provider
}
}
# Add Header: { "Authorization": "Bearer <token>" }
query Private {
whoAmI {
id,
provider,
providerId,
username,
name
}
orders {
id
alias
thing {
name
}
}
}
mutation createOrder {
createOrder(alias: "myname", thingName: "this is a thing you can order") {
id
alias
}
}
Cognito Auth(重定向到託管Cognito UI)
Google Auth
next.js頁面
JWT保護的Next.js頁面
Nest CLI:
docker-compose exec web yarn nest -- --help
Typeorm CLI:
docker-compose exec web yarn typeorm -- --help