GithubHelp home page GithubHelp logo

philr8 / cmcs-eregulations Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enterprise-cmcs/cmcs-eregulations

0.0 1.0 0.0 7.13 MB

Web application for viewing Medicaid and CHIP regulations and related policy information

License: Other

Dockerfile 0.03% Python 8.64% HTML 4.75% Makefile 0.40% Go 3.68% JavaScript 34.84% Shell 0.01% Vue 3.09% CSS 37.84% SCSS 6.71%

cmcs-eregulations's Introduction

About

This is a project for the Center for Medicaid and CHIP Services (CMCS) to meet needs of CMCS and State staff researching regulations and related guidance, building on the eRegulations open source project.

We have public documentation about our product, design, and research processes in this repository wiki.

Prerequisites

  • Docker
  • Docker Compose
  • go version 1.16
  • git
  • node >= v15 (We suggest using nvm)

Getting setup

Getting the code

git clone https://github.com/cmsgov/cmcs-eregulations

Running eRegs

A lot of tasks for local development can be accessed through the Makefile. Running make will provide some information about the available tasks.

For example:

make local

Will start a local docker environment and load parts of Title 42 into it.

Proceed to http://localhost:8000 in your browser to see the results.

make local.createadmin will create an admin superuser for the admin portion of the site.

Proceed to http://localhost:8000/admin to access the admin portion and login with the credentials you created in the previous step

make local.seed will load data from the fixtures folder setting up a usable amount of data for local use.
This data is not maintained and should not be relied on for any purpose other than development.

make local.stop will cause the running docker processes to stop without losing data.

make local.clean will remove the local environment completely, useful when you want to start fresh.

Testing eRegs

Testing Setup

Before running the tests for the first time, you may need to install cypress dependencies.

  1. cd e2e
  2. npm install

Running the tests

Running make test after make local will run the cypress suite of end to end tests.

  1. Navigate to project root
  2. If project is not already running locally, run make local
  3. make test

Working with assets

make watch: scss and js files can be watched an automatically compiled

Exporting data from Production

Every type of model has an "Export to JSON" button that will export the data to a JSON format that can be easily imported by saving the file to the fixtures folder and importing it with the built in loaddata command from Django.

cmcs-eregulations's People

Contributors

whytheplatypus avatar cgodwin1 avatar theabrad avatar philr8 avatar knollfear avatar inkandsound avatar brittag avatar dependabot[bot] avatar

Watchers

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