GithubHelp home page GithubHelp logo

javaijafoi / dice-roller-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aloverso/dice-roller

0.0 0.0 0.0 331 KB

RPG dice roller & template react/node/typescript app

Shell 7.32% JavaScript 5.73% TypeScript 66.99% HTML 2.97% SCSS 16.98%

dice-roller-1's Introduction

Dice Roller

build

An Express/React/typescript bootstrapper app

View it live at http://rpgdiceroller.com

Getting Started

This typescript repo is structured with two primary sub-folders:

  • backend - the express API server
  • frontend - the react web UI

npm Dependencies

For npm dependencies:

./scripts/install-all.sh

Development

Start frontend dev server:

./scripts/frontend-start.sh

Start backend dev server:

./scripts/backend-start.sh

Run all jest tests, and linting:

./scripts/test-all.sh

Run cypress feature tests:

./scripts/feature-tests.sh

Fences

This repo uses good-fences to enforce module boundaries. Most importantly, the backend and frontend cannot import from each other.

Additionally, fences are used in the backend subdirectories to enforce dependency inversion. The routes and database folders depend on the interfaces defined in domain (only - not on each other), and domain is not allowed to import from any of these implementation directories.

Fences are enforced via a linting-like command that will fail when any violations are flagged:

npm --prefix=backend run fences
npm --prefix=frontend run fences

Pushing changes

Always push via ship-it (why?)

./scripts/ship-it.sh

CI/CD

We use circleci.

The pipeline is:

  1. npm install (frontend and backend)
  2. run all unit tests (frontend and backend)
  3. build code and run feature tests
  4. deploy to GCP environment

Deployment

Build frontend, build backend, compile all into one directory:

./scripts/build.sh

Start the production server (frontend & backend)

./scripts/prod-start.sh

Deploying to GCP

First, make sure that Google Cloud SDK is installed

Ensure you are logged in to the CLI and pointing to the correct project.

This script generates the app.yaml and deploys the app:

./scripts/deploy.sh

Generally, developers won't have to do this - we have automated deploys via CircleCI.

dice-roller-1's People

Contributors

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