From e6ecb61ea6c626397b28e64058da4a9dce497875 Mon Sep 17 00:00:00 2001
From: Philipp Hock <philipphock@gmail.com>
Date: Sat, 16 Sep 2023 13:54:16 +0200
Subject: [PATCH] docu extended

---
 README.md            |  5 +++++
 package.json         |  1 +
 prisma/schema.prisma | 20 --------------------
 3 files changed, 6 insertions(+), 20 deletions(-)
 delete mode 100644 prisma/schema.prisma

diff --git a/README.md b/README.md
index da17f5b..e31431a 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 585b548..3e91c6e 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 bbbb592..0000000
--- 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
-- 
GitLab