https://github.com/coreybutler/nvm-windows
To use nvm run nvm use
in the project directory
This repo contains the last project for CS50x course. It consists of 3 main parts:
- Next.js application
- REST API
- WS API
Next.js contains all the static
that user would see in the browser
Rest API is used for simple REST API calls, like creating/updating users and so on.
WS is used for messaging and instant update of the messages on UI side
(this choice was made only for study purposes, probably SSE would be better in this case, just for text messages)
- go to
server/src/db
and checkschema.sql
,init.sql
. - Execute
init.sql
to create db and user andschema.sql
to create db_schema (seed is created to be used with PostgresSQL) - Install dependencies with
npm i
- Run server
npm start:server
- Run ui
npm start:ui
To run test npm run test
In order to prevent new line symbol to conflict with linter
git config core.autocrlf false
git rm --cached -r .
git add *