Giter Club home page Giter Club logo

canary_project's Introduction

๐Ÿค Canary Project

A dummy project for testing out product development techniques and procedures.

Getting Started

  1. Make sure you have Node.js and Postgres (at least ver 13) installed.
  2. Clone down the repo
  3. npm run start
  4. The Project should be running on localhost:8000
  • You can create a ./config/local.config.js file to override and change settings within the project. (Don't worry, this won't be commited to the repo)
  • You can either set up your own Okta instance, or grab the configs from another team member and use a shared developer instance

Development

Canary is set up to support rapid development.

  • Starting the project with npm run dev sets it in development mode
  • In development mode, it uses file watchers to automatically restart and re-bundle any code that changes
  • It uses Live Reload to automatically update the browser with changes
  • Freely make changes to your own ./config/local.config.js without affecting the rest of the project

Tests

You can run the test cases by running npm run tests. If any tests fail it'll output an exit code of 1.

The test cases cover unit tests for business logic, API tests using supertest, and database tests using isolated tables.

Tech Stack

Deployments

Currently the Canary Project has two deployment environments: development and production

development

  • Set up for auto-deploys from new pushes and PRs to master branch on Github
  • Configs should roughly mirror local development
  • Used to validate deployed feature changes
  • Can whitelist valid IP ranges for internal access only

production

  • Deployed from a deployed development slug

Compliance & Security

Heroku has extensive documentation on how they comply with GDPR

We can give any team oversight access to both the Github repo and the Heroku pipelines.

Scripts

  • npm run start : Starts a project server
  • npm run dev : Starts a development server
  • npm run tests : runs the test cases
  • npm run dummy_data : Preloads the database with some random fake data
  • npm run logs : Outputs the log stream from the production Heroku instance
  • npm run heroku : Opens a browser to the Heroku pipeline

canary_project's People

Contributors

stolksdorf avatar

Watchers

 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.