Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

cisagov/domain-manager-api

Repository files navigation

Domain Manager

Domain Categorization and Management

GitHub Build Status CodeQL Known Vulnerabilities

Required

Get the right Docker for your OS:

Note: The recommended requirement for deployment of this project is 4 GB RAM. For Docker for Mac, this can be set by following these steps:

Open Docker > Preferences > Advanced tab, then set memory to 4.0 GiB

Setup project locally

  1. Copy your env vars.

  2. Build project containers.

  3. Run Containers.

  4. Run flask logs using docker attach

  5. Application running at: localhost:5000

    cp etc/env.dist .env
    make build
    make up
    make attach
    
    * Serving Flask app 'api.main' (lazy loading)
    * Environment: development
    * Debug mode: on

Other commands

Run live flask logs in the terminal

  • make logs

Stop containers

  • make stop

Remove containers

  • make down

Shell into container

  • make shell

Run pre-commit:

  • pre-commit run --all-files

Count lines of code

  • make loc

API Documentation

  • You'll find the API Documentation here

Contributing

We welcome contributions! Please see here for details.

License

This project is in the worldwide public domain.

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.