Transformice Web Client is a web app that allows user to login to their Transformice account and chat
This website is built with:
- Install dependencies
cd vue
npm i
- Setup environment variable
- Create
.env.dev
and.env.prod
file on root ofvue
folder - Put
SOCKET
variable on each of the env file with the value of socket.io URL for development and production environment respectively (check.env.dev.example
/.env.prod.example
)
- Create
- Install dependencies
cd server
npm i
- Create
.env
file on the root ofserver
folder, refers to.env.example
- Create
users.json
file onserver/src
folder containing the list of whitelisted username (in lowercase) that can login (refers tousers.example.json
)
For the web, run:
cd vue
quasar dev
to start the web development server, by default it will run on port 8080 (http://localhost:8080)
For the server, run:
cd server
npm run dev
to start the development server.
Both of the development server will watch for file changes and recompile accordingly.
For the web, run:
cd vue
quasar build
to build the minified web, the compiled web will be located in vue/dist/spa
For the server, run:
cd server
npm run build
to compile the TypeScript code, the compiled JavaScript code will be located in server/dist
, to start the server, run:
npm run start