Giter VIP home page Giter VIP logo

rsp.ui's Introduction

roadsign.pictures

A gallery of road signs from North America. Hosted as a Hugo static website, with content generated at build time from a PostgreSQL database using Go.

To run locally, you will need to have the following tools installed:

  • Hugo.
  • NodeJS v.20.11.0 or later to manage Javascript and CSS assets.
  • Go v1.20 or above to run the Go program to generate the content.

The other sub-projects have their own dependencies, and are listed below in the Sub Projects section.

Environment Variables

Content Exporter

Variable Name Description
DB_USER User with permissions to read from the database
DB_HOST Host name of PostgreSQL server
DB_PASSWORD Password for the user
DB_NAME Database name that hosts sign database
DB_PORT Port to connect to the PostgreSQL server
HUGO_PATH Path to output content to. Should correspond with the directory that Hugo reads content from.

Static Website

Variable Name Description
HUGO_PARAMS_W3WAPIKEY API Token for What3Words
HUGO_PARAMS_SEARCHURL Base URL for the search API
HUGO_PARAMS_RANDOMURL Base URL for Random Sign API
HUGO_PARAMS_SEARCHINDEX Search index name for signs
HUGO_PARAMS_SEARCHINDEXHIGHWAY Search index name for highways
HUGO_PARAMS_SEARCHKEY Token with read access to the search index
HUGO_PARAMS_SIGNBASEURL Base URL for the Roadsign Picture hosting
HUGO_PARAMS_SHIELDBASEURL Base URL for the Highway Shields hosting
HUGO_PARAMS_MAPBOXTOKEN API Token for Mapbox
HUGO_PARAMS_MAPTILE Url for Sign Vector Tiles

Running Locally

The all the necessary CSS and JavaScript build tools will need to be installed the first name:

npm install

To export content, set the correct environment variables and run the following command:

go run main.go

To run the website locally, set the correct environment variables and run the following command:

hugo serve

If making changes to the CSS you will want to run the Tailwind service in a different terminal window:

npm run tailwind

Sub Projects

rsp.ui's People

Contributors

zmaillard avatar

Stargazers

 avatar

Watchers

 avatar

rsp.ui's Issues

Create Separate Version Page

Every time the footer changes the entire site needs to rebuild which seems excessive just for a version number.

Create a separate version page that links to the footer - with the details of the version and builds.

Missing Tags

Some of the newer pages do not have all the expected tabs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.