- Notifications
You must be signed in to change notification settings - Fork0
tasogare66/learn-speed
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Online speed (card game) with Node.js and Socket.IO sample.
npm installnode server.js
- npm initentry point server.js- npm install express --save- npm install -D @types/express- npm install socket.io --save- npm install -D @types/socket.io- npm install -D @types/socket.io-client- npm install nanoid --save- npm install -D @types/nanoid- npm install jquery --save- npm install -D @types/jquery- typescript- node version v14.15.5- npm install -D typescript @types/node@14- npx tsc --init- compile:npx tsc- run:node dist/server.js- webpack- npm install --save-dev webpack webpack-cli ts-loader html-webpack-plugin webpack-node-externalsnpm run dev でwebpack- nodemon- npm install --save-dev nodemon nodemon-webpack-pluginnpm run dev でサーバーも起動
heroku loginheroku create learn-speedgit push heroku mainheroku ps:scale web=1heroku openheroku logs --tail
local test
heroku local web
https://learn-speed.herokuapp.com/
https://www.hiramine.com/programming/onlinebattletanks_nodejs_socketio/index.htmlhttp://www.cc.kochi-u.ac.jp/~tyamag/jyohou/javascriptcardgame.pdf