Skip to content

This is a repo for playing around with creating a CRUD API in different languages. Each language will make CRUD requests against a Postgres database which is populated with the OS OpenRoads road network.

Notifications You must be signed in to change notification settings

hloughrey/road-closures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Road Closures

This is a repo for playing around with creating a CRUD API in different lanugages. Each language will make CRUD requests against a postgres database which is populated with the OS OpenRoads road network.

Getting started

  1. Due to the size of the OS OpenRoads dataset, it is not inclued in this repo; but if you follow the instructions within the OS OpenRoads Processing repo, you will be able to generate the os_open_roads.dump file required to build the postgres db required by this repository.

  2. Once you've generated the os_open_roads.dump file, copy and paste it into the docker-entrypoint-initdb.d directory so that you have the following structure:

db
|-- docker-entrypoint-initdb.d:
    |-- create_postgis.sql
    |-- os_open_roads.dump
    |-- restoreDB.sh
  1. Build the docker images

    docker-compose build
    
  2. Run the application

    docker-compose up
    
  3. Make calls to the APIs

Node API Endpoints

TODO

  • Add Swagger endpoint to Node API
  • Add indexing to name1 field
  • Build C# API

About

This is a repo for playing around with creating a CRUD API in different languages. Each language will make CRUD requests against a Postgres database which is populated with the OS OpenRoads road network.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published