Giter VIP home page Giter VIP logo

fantasygameofthrones's Introduction

Fantasy Game of Thrones


Introduction

see Game of Thrones Wikipedia and The Inspiration

This provides a platform for a Game of Thrones fantasy league.

Tech Stack

React/Redux + Node/Express + Sequelize/MySQL


Getting started (dev)

  • In the root directory: touch .env
    • Copy and paste the following into your .env:
    NODE_ENV=development
    PORT=8000
    DB_URL=http://localhost:2391
    DB_NAME=got
    DB_USER=root
    DB_PORT=2391
    
  • npm install
  • npm install -g babel-cli
  • Check to make sure you have a database called 'got' in mysql:
    • In your terminal: mysql -u root
    • Then (you should now be in the mysql cli): show databases;
    • If you have 'got', you're fine.
    • Else, create database got;
    • You can now exit mysql
  • In one terminal window: npm start
  • In another terminal window: npm run db
  • In another terminal window: npm run watch
  • In another terminal window: npm run dev

Dev server should now serve files from http://localhost:4000. React components should be auto-updated, without need of browser refresh. Regular server will serve files from http://localhost:8000! We are using it currently as an endpoint which our dev server pings to grab data. The database has its own server, which should be operating on port 2391.

To use Redux Dev Tools (time travel etc)

Go to webpack.config.js and change NODE_ENV to JSON.stringify('development')


Dependencies

Dev Dependencies

fantasygameofthrones's People

Contributors

naomiajacobs avatar ryanwholey avatar briankgraham avatar zlester 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.