GithubHelp home page GithubHelp logo

denisekgosnell / battlestax-tutorial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kidrecursive/battlestax-tutorial

0.0 1.0 0.0 1.63 MB

Shell 5.20% JavaScript 49.50% HTML 31.14% CSS 14.16%

battlestax-tutorial's Introduction

BattleStax

BattleStax is a stateful JAMStack game that is wholesome fun for the entire crew.

Actions Status

Netlify Status

Project Structure

BattleStax's folder structure is (mostly) generated from Create React App. We then add a Netlify Functions and Github Actions.

Prerequisites

  • A Github account - Github
  • A fork of the BattleStax Tutorial repository - Repository
  • NodeJS 12 - Download - Recommended alternative: Setup your local development environment with nodeenv
  • A Netlify account (it's free!) - Netlify
  • An Astra account and database (it's free!) - Astra

Using nodeenv (recommended)

Using nodeenv allows you to keep your NodeJS version and dependencies isolated for the project you're working on. To get started using it for BattleStax, install it using homebrew or easy_install.

# install using homebrew
brew install nodeenv

# install using easy_install
sudo easy_install nodeenv

Once nodeenv is installed, setup a virtualenv in the project folder, and then activate it.

# setup a nodeenv in the venv folder using NodeJS 12
nodeenv venv --node=12.18.4

# activate the nodeenv
. venv/bin/activate

Working with BattleStax

Create a .env file and fill it with values from the .env.example file.

Make sure the package dependencies are installed

# install dependencies
npm install

Then, start the app in dev mode. Changes in the src or functions directories will trigger reloads.

# start battlestax in dev mode
npm run dev

battlestax-tutorial's People

Contributors

kidrecursive avatar

Watchers

 avatar

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.