Skip to content

pzaenger/angular-graphql

Repository files navigation

angular-graphql

Example of how to use Angular 14, GraphQL and Tailwind CSS.

The project uses Apollo Angular and the GraphQL Code Generator, the latter generates via npm run generate all necessary types for type safety. The GraphQL API used is the Star Wars GraphQL API. In addition, it includes a Dockerfile using PM2 to serve the bundled app.

Development

npm install
npm run generate
npm start

Production

npm run generate && npm run build
docker build -t <name>:<tag> .
docker run <name>:<tag>