Giter Site home page Giter Site logo

ogueta93 / amalgam-front Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.92 MB

Amalgam front is a html5 videogame inspired in Triple Triad. It use node and Vue Cli mainly.

License: GNU General Public License v3.0

JavaScript 10.71% HTML 0.30% Vue 85.75% CSS 3.23%
html5-game css3 css-flexbox video-game videogame triple-triad vue vue-cli nodejs node

amalgam-front's Introduction

Amalgam Frontend

Amalgam front is a html5 videogame with PWA. Inspired in Triple Triad. It use node and Vue Cli mainly.

Live Version

Application Backend

Amalgam fronted supplies front side. You can get the back here:

Amalgam Dev-Tools

Amalgam Dev Tools is a project that was maked with the idea to facilitied the necesary tools to develop in Amalgam and Amalgam Front.

Base technologies

Requirements

To run this proyect correctly you need to prepare your local machine:

  • Node, last version.
  • Yarn or Npm, last version.
  • Vue Cli.

Installation instructions

1. Install Vue Cli

2. Get node_modules

In the root folder, you must to run the next command:

yarn install

3. Basic Proyect Configuration

  1. 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
  1. (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,
	},
	.....
}

Start Application

To start the application execute the next command:

yarn serve

PWA

PWA is available for this proyect. The front requirements are:

1. Configure .env.production and set your wss connection compatible with ssl.

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/}

2. Configure the manifest.json

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"
}

3. Build your application

yarn build

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.