Coder Social home page Coder Social logo

duke-crucible / snowball-ui Goto Github PK

View Code? Open in Web Editor NEW
0.0 7.0 0.0 428 KB

The UI repo for Snowball Project. Snowball is a contact tracking application for pandemic research study.

License: Apache License 2.0

Shell 0.42% Dockerfile 0.51% JavaScript 95.77% HTML 0.21% CSS 3.09%

snowball-ui's Introduction

snowballgr-ui

snowballgr-ui is...

Quick Start

You will need docker-compose.

Clone this repo:

git clone [email protected]:Crucible/devops/snowballgr-ui.git
cd snowballgr-ui

Set up the environment variables:

cp .env.example .env

Run with docker-compose:

docker-compose build
docker-compose up

Now you have a running React app at http://localhost:3000.

Development

As you edit code the server will automatically reload to pick up your changes. Sometimes you might need to shut down the server and rebuild the Docker images, for example if you add a new dependency. You can do this with docker-compose stop followed by docker-compose build and then restart the server with docker-compose up.

Interaction with the project to install dependencies, run tests, etc. is achieved through executing commands in the app container created by docker-compose. You can open a shell in the container via docker-compose run --rm app bash or you can run one-off commands using docker-compose like docker-compose run --rm app yarn test.

Useful commands

All of these are run within the app container as described above.

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

Deployment

This project is deployed to the app platform so if you start by forking it you should be well on your way, but below is a step-by-step guide. These steps assume you have general familiarity with the app platform.

Environment Configuration

One particular note is that the Docker image is set up so the app can be configured like any 12-factor app: through environment variables. Any environment variable prefixed with REACTAPP will be available in the app under window._env. The same rules apply to the .env file when developing locally. Be aware that these variables are still exposed in the browser since this is a frontend app.

snowball-ui's People

Contributors

yuhanmcgee avatar

Watchers

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