Service which provides both a websocket server and a REST endpoint
- Nodejs + npm: https://nodejs.org/en/download/
- Docker: https://docs.docker.com/get-docker/
- sequelize-cli: npm i -g sequelize-cli
git clone https://github.com/JulianNicolas/MM
- cd MM/server
- ../MM/server> docker-compose -f "docker-compose.yml" up -d --build
if you are working on new Macbook M1 you should pull this image before running docker-compose
- docker pull --platform linux/x86_64 mysql:8.0.22
-
../MM/server> docker exec -it mysql_mm mysql -uroot -p
-
password: root
-
mysql> CREATE USER 'myuser'@'%' IDENTIFIED BY 'mypassword';
-
mysql> grant all on . to 'myuser'@'%';
-
mysql> exit;
- ../MM/server> npm i
- ../MM/server> npx sequelize db:create
- ../MM/server> npx sequelize db:migrate
- cd MM/server
- npm run build
- npm run start
Open your browser and navigate to localhost:3000
- Node.js + Express.js + Typescript
- MySQL
- Sequelize
- Socket.IO
- Julián Antonucci - - JulianNicolas