The community toilets app aims to provide a platform for users to find nearby community toilet facilities within the Bristol area. The app utilizes data obtained from the Bristol Open Data API, which includes information about toilet locations, name of the toilets, toilets with changing places, toilets based on wards, family toilets, toilets with baby change. It involves building a web application using HTML, CSS, JavaScript.
- The data from the Bristol Open Data API may not be up to date.
- Some toilet locations may lack facility information.
- The system utilizes configuration files to manage API keys, database connections.
- /docs: Contains all the HTML, CSS, and JavaScript files for the website.
6 tests completed in 17 milliseconds, with 0 failed, 0 skipped, and 0 todo. 7 assertions of 7 passed, 0 failed.
The software architecture consists of the following major components:
![Screenshot 2024-05-09 at 00 39 32](https://private-user-images.githubusercontent.com/148769002/329062726-8691ed9e-60b4-4b49-a590-a86420833a5c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMzkwMzgsIm5iZiI6MTczOTAzODczOCwicGF0aCI6Ii8xNDg3NjkwMDIvMzI5MDYyNzI2LTg2OTFlZDllLTYwYjQtNGI0OS1hNTkwLWE4NjQyMDgzM2E1Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQxODE4NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMGExNzRkYjIxNzI2NTkwNDMyMzJmODFjNGU2OTEyZTQ1NTNiMDhhMzdjNjY2OWQzYzc2ZmZmZjVmN2FmZjdhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.CJ_ispacGFWMLBgKxKzqzBPJTmft13uoqA9xIwBAosU)
-Client: Represents the frontend HTML, CSS, and JavaScript responsible for user interaction. -Bristol Open Data API: Provides data about toilet locations and facilities. -Browser: Renders the HTML, CSS, and JavaScript to the user's browser.
Query 1: Get All Toilet Locations
Endpoint: /api/toilets Description: Retrieves a list of all toilet locations within the Bristol area. Parameters: None Query 2: Get Toilet Details
Endpoint: /api/toilets/:name Description: Retrieves detailed information about a specific toilet location. Parameters: id (Toilet name)
![Screenshot 2024-05-09 at 03 27 55](https://private-user-images.githubusercontent.com/148769002/329088797-e3dbfb7f-707d-4932-8945-36d5161138b3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMzkwMzgsIm5iZiI6MTczOTAzODczOCwicGF0aCI6Ii8xNDg3NjkwMDIvMzI5MDg4Nzk3LWUzZGJmYjdmLTcwN2QtNDkzMi04OTQ1LTM2ZDUxNjExMzhiMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQxODE4NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mYmE1YWJiMTA5OGZjZTk3NDVlZTk4YTc5NjM4MTVkZDZhMmE5NmE5ZmUyZTNiZjVkZGQyZTEzZWM4OGRkZTRiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.2ukMHYmWDRX5BjDzLkdOdNetxfZWLA7WPKUu_OJFjvw)