Coder Social home page Coder Social logo

bvi1994 / horizonsgameroom Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 6.33 MB

This repo contains the Horizons Game Room, which is a series of mutliplayer games made with HTML, CSS, Node.js, React, Socket.io and MongoDB

JavaScript 80.39% CSS 16.37% HTML 3.25%

horizonsgameroom's Introduction

React + Node Starter

for Heroku deployment

Overview

This is a simple starter to get you up and running for React projects. This is intended to provide:

  • a lightweight webpack config (for development and production)
  • some helpful tooling for development workflow
  • a similar setup to what you'll see in the wild
  • Heroku-ready deployment setup

Running

Install dependencies: $ npm install or $ yarn

Fire up a development server: $ npm run dev

Once the server is running, you can visit http://localhost:3000/

File layout

  • Frontend React
    • The top level application Container is in frontend/containers/AppContainer.js
    • CSS styles are in frontend/assets/stylesheets/base.scss
  • Backend Express
    • Entry point is server.js
    • API routes are under backend/routes.js
    • API routes are served under http://localhost:3000/api

Production Build

To build your production assets and run the server:

$ npm start

Deploying to Heroku

This app is set up for deployment to Heroku!

This assumes you have already have a Heroku account and have the Heroku CLI installed

$ heroku login
$ heroku create -a name-of-your-app
$ git push heroku master
$ heroku open

Heroku will follow the build command in your package.json and compile assets with webpack.prod.config.js. It runs the Express web server in server.js.

If you're unfamiliar with Heroku deployment (or just need a refresher), they have a really great walkthrough here.

Running on Glitch

  1. Go to https://glitch.com/edit/#!/horizons-hackathon-react and click Remix this ๐ŸŽค
  2. Click Show at the top to preview your app!

horizonsgameroom's People

Contributors

borajimin avatar bvi1994 avatar moose-horizons avatar jchuprograms avatar imjching avatar

Watchers

James Cloos avatar  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.