Skip to content
Snippets Groups Projects
Commit e6ecb61e authored by Philipp Hock's avatar Philipp Hock
Browse files

docu extended

parent 70f1f825
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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",
......
// 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment