/ngx-snake

Primary LanguageTypeScript

NgxSnake

This is a community project. Snake game.

Techstack

  • angular
  • NestJs, Prisma
  • Swagger
  • rxjs

Requirements

  • node
  • npm
  • npx
  • docker

DEV Setup

  • INSTALL: npm run installer
  • clean all: npm run clean
  • build all: npm run build
  • test all: npm run test
  • lint all: npm run lint

docker

  • start local db docker container: npm run docker:local:up
  • stop local db docker container: npm run docker:local:down
  • start local db docker container for tests: npm run docker:test:up
  • stop local db docker container for tests: npm run docker:test:down
  • start dev stack (db, backend, frontend in docker): npm run docker:dev:up
  • stop dev stack (db, backend, frontend in docker): npm run docker:dev:down

backend

  • first start - generate prisma client and deploy migrations to DB: npm run be:prisma
  • development: npm run be:watch
  • clean: npm run be:clean
  • build: npm run be:build
  • test: npm run be:test
  • lint: npm run be:lint

frontend

  • development: npm run fe:watch
  • clean: npm run fe:clean
  • build: npm run fe:build
  • test: npm run fe:test
  • lint: npm run fe:lint

Generate Frontend Service's

  • we use ng-openapi-gen to generator service code for Angular
  • generate: npm run fe:gen-service

DB Demo Data

URLs

work with us.

  • fork
  • send a PR