Amalgam front is a html5 videogame with PWA. Inspired in Triple Triad. It use node and Vue Cli mainly.
Amalgam fronted supplies front side. You can get the back here:
Amalgam Dev Tools is a project that was maked with the idea to facilitied the necesary tools to develop in Amalgam and Amalgam Front.
To run this proyect correctly you need to prepare your local machine:
- Node, last version.
- Yarn or Npm, last version.
- Vue Cli.
- Install Vue Cli: Instructions
In the root folder, you must to run the next command:
yarn install
- You must to set the ws server address in .env file. (The websocket server runs on 8080 port number. At the moment, the port number is a hardcoded value). Example:
VUE_APP_ENVIRONMENT=dev
VUE_APP_TITLE=Amalgan
VUE_APP_WEBSOCKET_URL=ws://{host}:8080
- (optional) You must to set the host if you are running the application in a server vue.config.js file. Example:
module.exports = {
devServer: {
open: process.platform === 'darwin',
host: '',
port: 4545,
https: false,
hotOnly: false,
},
.....
}
To start the application execute the next command:
yarn serve
PWA is available for this proyect. The front requirements are:
NODE_ENV=production
VUE_APP_ENVIRONMENT=prod
VUE_APP_TITLE=Amalgan
**VUE_APP_WEBSOCKET_URL=wss://** {Example: VUE_APP_WEBSOCKET_URL=wss://mydomain:8080/wss2/}
The file is located in public/
{
"name": "Amalgam",
"short_name": "Amalgam",
"icons": [
{
"src": "app_icon_192x192_original.png",
"type": "image/png",
"sizes": "192x192"
}
],
"start_url": "/",
"display": "fullscreen",
"orientation": "landscape"
}
yarn build