diatopia-server is a WebSocket-based server and transmit data to diatopia application.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Check you got proper version Node.js and npm already.
node --version
npm --version
Install node_modules all the project needs.
npm install
Wait a little time for installing and finally project is done.
create a .env to provide environment variables
touch .env
type following variables
WSS_HOST=HOST_IP
WSS_PORT=PORT_NUMBER
WSS_PATH=URL_PATH
Here are some npm scripts about webpack that I had set for project.
The nodemon and ts-node module provides you with a simple web server and the ability to use live reloading.
npm run dev
- (FuChuan Yu) - Portfolio