RESTful Web API for the City of Santa Monica's Parking Data, implemented as an Orchard module.
This module currently targets Orchard 1.9.2
This module has a dependency on the CSM.WebApi module.
The theme for the site can be found here CSM.ParkingData.Theme. This theme is a child theme of the CSM.BootstrapBase theme.
Tests can be found in the Tests subproject; NUnit is the testing framework.
To get a local copy running, some initial setup is required. This Orchard development guide provides an introduction to a general project structure; the same procedure can be used to get setup for developing the Parking API site.
- Clone the Orchard source and checkout the 1.9.2 branch
- Clone this repository (e.g. into a folder called
CSM.ParkingData
) - Clone the CSM.WebApi into a folder called
CSM.WebApi
- Clone the CSM.ParkingData.Theme into a folder called
CSM.ParkingData.Theme
- Clone the CSM.BootstrapBase into a folder called
CSM.BootstrapBase
- Following the dev guide on source code setup, create junctions
that point from inside
Modules
(orThemes
) in the Orchard source, to the repositories you cloned in steps 2 - 4. - Following the dev guide on solution setup, add the modules (and theme) to your Orchard solution.
- Rebuild the solution.
- Obtain the publish profile from Azure, add to the parent
Orchard.Web
project in the Orchard solution. - Ensure the publish profile is configured so that the File Publish Options Remove extra files at destination and Exclude files from the App_Data folder are checked.
- Add the
<rewrite>
node from this module'sWeb.config
to the<system.webServer>
node inOrchard.Web
'sWeb.config
file. - Rebuild the site and ensure it runs locally (SqlCE setup will work for simple build/run testing)
- Select the
Orchard.Web
project, and clickPublish Web
to deploy.