diff --git a/README.md b/README.md index da17f5b4decaab40efabcc65b6640fbc6f8bdbe0..e31431ab222ceed1e42fa2b7d6e1c77c6c7ff763 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,8 @@ To setup the project, start `npm install` then run `npm run start:dev` open [Demo client](http://localhost:3000/client) and open devtools. + +You may need to copy the .env_schema to .env and edit the secrets for encryption. + +It also requires a running mongoose database. A docker-compose file is provided. +`npm run db` starts the database diff --git a/package.json b/package.json index 585b5485c3b7dedaa002d2cc493a19e200ef516d..3e91c6e4ac74269396834fc0d212fd0601dab3e8 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "build": "nest build", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", + "db": "docker-compose up -d", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", "start:prod": "node dist/main", diff --git a/prisma/schema.prisma b/prisma/schema.prisma deleted file mode 100644 index bbbb59293b90cb657488b0833dc51b329f7c0658..0000000000000000000000000000000000000000 --- a/prisma/schema.prisma +++ /dev/null @@ -1,20 +0,0 @@ -// This is your Prisma schema file, -// learn more about it in the docs: https://pris.ly/d/prisma-schema - -// note this is only required when using prisma, this project uses mongoose - -generator client { - provider = "prisma-client-js" -} - -datasource db { - provider = "mongodb" - url = env("DATABASE_URL") -} - -model User { - id String @id @default(auto()) @map("_id") @db.ObjectId - name String - username String - password String -} \ No newline at end of file