Tic-tac-toe program using NodeJS
-
Install NodeJS
- Write command ; npm init
-
//http://expressjs.com/en/starter/generator.html#express-application-generator // These command will automatically create file needed
- Using express generator; npm install -g express-generator
- To check either express already installed use command; express
- Use command so it will create all the things needed in this program; express --view=ejs
- Use command; npm install
- On windows use command; set DEBUG=myapp:* & npm start else; DEBUG=myapp:* & npm start
- Use this command to start server; npm start (need to restart if there is changes)
- Instead use
nodemon app.js
ORnodemon app
(changes automatically updated)
-
Tutorial Javascript 2D array - https://www.geeksforgeeks.org/how-to-create-two-dimensional-array-in-javascript/