Skip to content

Pilot to implement open contracting data standard at the City of Portland

Notifications You must be signed in to change notification settings

BPSTechServices/ocdsPilot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

City of Portland: Designing an Open Contracting Program

This document provides the steps for deploying and running the City of Portland: Designing an Open Contracting Program using Docker. This program involves converting contract data into the Open Contracting Data Standard (OCDS) and presenting it through a front-end and back-end application.

1. Build Docker Image

First, build the Docker image containing the necessary dependencies:

docker build -t cop .

Alt text

2. Start Docker Container

Start the Docker container using the following command (Before that, DON'T FORGET to change the absolute path of your cop project in the docker_run script.):

sh docker_run.sh

To verify if the container has started successfully:

docker ps

Alt text

3. Set up Mongodb Database

Execute the following steps to initialize the database and run the mapper, which converts contract data into the OCDS standard and stores it in the MongoDB database inside the Docker container:

docker exec -it cop /bin/bash
cd Mapping/
python3 mapping.py

We have provided a config file. In this file, please change the path of the Excel report you want to import to the one you intend to use, making it convenient for you to convert data from different bureaus. Alt text

Alt text

4. Start back-end server

Start the back-end server inside the container:

docker exec -it cop /bin/bash
cd Back-end/
python3 app.py

Alt text

4. Start Front-end

Finally, set up and start the front-end application:

docker exec -it cop /bin/bash
cd Front-end/
npm install
npm start

Alt text Access the dashboard at the following URL:http://localhost:3000 Alt text

Notes

  • Ensure that Docker is installed and configured on your machine before running any Docker commands.
  • Follow the steps in order to ensure all services are correctly configured and started.

About

Pilot to implement open contracting data standard at the City of Portland

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 70.0%
  • JavaScript 23.3%
  • CSS 3.2%
  • HTML 2.8%
  • Other 0.7%