Git Product home page Git Product logo

poker-site's Introduction

Sample Poker Site

Getting Started

  1. Make sure you have npm installed. (brew install node). Now, enter the server directory.

  2. make setup installs all dependencies

1.5. You need to install MongoDB locally to run the website. See: https://docs.mongodb.com/manual/installation/

  1. make local will start your local instance! View it at http://localhost:8080

  2. When you make a change, kill the existing server and run make local again.

  3. When you're confident in your change, 0. Make sure your tests pass (npm test)

    1. Save your changes to Github :)

Important

  • Don't commit passwords, tokens, etc. into the codebase. ALWAYS USE ENV VARIABLES.
  • Before you push to app-engine, make sure to test with make test at least.

Contributing

  • src/ This directory contains all of the source code for the server. (see README) It's typescript, and has its own build step. (see Makefile 'build-server' step).

  • client/ This directory contains all of the source code for the client. The client uses React and has its own build process.

The client is built relative to '/resources/' so that we can effectively route the static files for the React site properly. (see package.json).

  • build/ The current build of the website. To rebuild, run:

make build

During the build step, we compile the server and client, and copy both of their outputs into build/. build/server contains the server code, and the rest of build/ is a static directory served on the website.

Commands

All build commands are currently set up in the Makefile.

to run the server locally: make local

to clean the server build: make clean

poker-site's People

Contributors

jbrower95 avatar

Stargazers

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