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
จุดสิ้นสุดที่เหลือโดย JWT ผ่าน 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 (เปลี่ยนเส้นทางไปยัง Hosted Cognito UI)
Google Auth
หน้า. js หน้า
หน้ากำหนด JWT Next.js
รัง CLI:
docker-compose exec web yarn nest -- --help
Typeorm CLI:
docker-compose exec web yarn typeorm -- --help