cityofaustin / atd-moped

A comprehensive mobility project tracking platform for Austin, Texas.
https://mobility.austin.gov/moped/
4 stars 3 forks source link

Moped

A comprehensive project tracking platform for Austin's mobility projects

πŸ›΅ πŸ—Ί πŸ‘· 🚌 🚧 🚴 πŸ“Š

Resources

Environments

For resources and updates, see the Mobility Project Database project index.

Post-it notes of users' desired Moped functionality and outcomes

Quick start

Welcome to the πŸ›΅ Moped codebase! Below is a step-by-step guide to help you get started by setting up the Moped environment.

Prerequisites

Before you begin, make sure you have the following installed on your system:

Setting Up Moped

  1. Install Hasura CLI

    • Install the Hasura CLI by running the following command:

      curl -L <https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh> | bash
      
    • Ensure it installs version 2.42.0 or later.

  2. Start the Hasura Cluster

    • Navigate to the moped-database directory:

      cd moped-database
      
    • Start the Hasura cluster using Docker:

      ./hasura-cluster start
      
    • If you encounter errors related to migrations, you can try the following:

      ./hasura_cluster start_only
      ./run_migrations
      ./hasura-cluster start
      
  3. Run the Frontend React App

    • Navigate to the moped-editor directory:

      cd moped-editor
      
    • Install the necessary npm packages:

      npm install
      
    • Start the frontend development server:

      npm start
      
    • The application should open in your browser at https://localhost:3000/moped.

Troubleshooting

Learn more

License

As a work of the City of Austin, this project is in the public domain within the United States.

Additionally, we waive copyright and related rights of the work worldwide through the CC0 1.0 Universal public domain dedication.

Built by Data & Technology Services at Austin Transportation & Public Works