This is a GraphQL application to manage Products. A product has:
- id (provided by the system)
- name (String, Required)
- createdAt (provided by the system)
- updatedAt (provided by the system)
This application use a "in-memory" variable to store the data. Once restarted, all data will be reset.
Build with Nest framework
- npm
- Node.js
npm install
This app use the default port 3000. To change it, define the environment PORT. In a local environment, just copy (and edit the .env file):
cp -v .env.example .env
# development
npm run start
# watch mode
npm run start:dev
# production mode
npm run start:prod
Please check docs/USAGE.md
# unit tests
npm run test
# e2e tests
npm run test:e2e
# test coverage
npm run test:cov
Nest is MIT licensed.