This repo is now archived. It has moved to be a part of the mono-repo here
Everything below this line is preserved for historical purposes only
This repository is the front end web app for Cuttle, the pvp card game, built in VueJs using Vuetify. It must be run in tandem with the back end web server, built with SailsJs.
To play the game you will need to boot both the front & back end servers, then navigate to localhost:8080
in your browser of choice.
nodeJs lets you create & run web servers in javascript (along with other fancy system-level stuff not needed for this project). Both this repository & the back end depend on node as the main system-wide dependency. The download comes with npm (node package manageer) which you'll use to install the project-specific dependencies.
You should install version 14.xx.xx (Left-side download) as this is the latest stable version.
NOTE When running on your local computer, signup/login only stores credentials on your computer and in memory. Shutting down the server wipes the in-memory database along with all game & account data.
git clone https://github.com/itsalaidbacklife/cuttle-front-vue
Open a terminal in the root directory of this project and run
npm ci
(note that ci
as opposed to install
is a 'clean install' which ensures versions exactly match package-lock.json).
npm run serve
Navigate to localhost:8080 in your browser of choice.
You should see the Login page, but you won't be able to login until you boot the back end (see below)
To configure for play on your local wifi network, find your local ip address, then create a new file in the root folder of the front-end (this) repo called .env.local
and add this one line to it:
VUE_APP_API_URL=<your-local-ip>:1337
Then you can open your browser in any other device on the same network to <your-local-ip>:8080
to play on that device.
npm run build
npm run lint
git clone https://github.com/TeasingSisyphus/cuttleV2
cd into root folder of back-end and run
npm install
npm start
Once the front & back-ends are booted, you can play the game in your browser at localhost:8080
You can shut down the servers by hitting ctrl + c
several times from the terminal windows they are running in. Shut down both servers to completely delete all game & account data.