Messages can be posted by multiple clients and automatically update. The messages are stored on a Mongodb database.
Uses:
- Express
- Socket.io
- Mongodb, with mLab and Mongoos
- Jasmine
- Dotenv
- Nodemon
- jQuery
There are examples of TDD and BDD techniques and I have included my notes.
npm install
nodemon server-static/server.js localhost 8080
data is saved in the pgdata directory even when the container is brought down.
docker-compose ps
docker-compose run db bash
psql --host=db --username=test dbname=test
npx prisma init
npx prisma migrate save --name init --experimental
npx prisma generate
You can now start using Prisma Client in your code:
import { PrismaClient } from '@prisma/client'
// or const { PrismaClient } = require('@prisma/client')
const prisma = new PrismaClient()
-
restructure this nonsense, write about about using mongo...
-
i need to get express running in docker
-
get postgres working for CRUD with prisma and express