https://github.com/fwextensions/closed-sign-test
https://github.com/fwextensions/closed-sign-test
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fwextensions/closed-sign-test
- Owner: fwextensions
- Created: 2025-05-14T21:29:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-14T21:35:49.000Z (about 1 year ago)
- Last Synced: 2025-05-14T22:29:26.710Z (about 1 year ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SF Office Closure Sign Generator
A web application for San Francisco city employees to create standardized "Sorry, we're closed" signs for their offices. The app uses GPT-4o to standardize closure information and generates both printable signs and JSON data for CMS integration.
## Features
- Simple form for entering department name and closure information
- AI-powered standardization of closure information using OpenAI's GPT-4o
- Beautifully designed printable closure signs
- JSON output for integration with city CMS systems
- Mobile-responsive design
## Setup Instructions
### Prerequisites
- Node.js (v14 or higher)
- npm (v6 or higher)
- OpenAI API key
### Installation
1. Clone this repository or download the files
2. Install dependencies:
```bash
npm install
```
3. Configure environment variables:
- Rename `.env.example` to `.env` (or create a new `.env` file)
- Add your OpenAI API key to the `.env` file:
```
OPENAI_API_KEY=your_openai_api_key_here
PORT=3000
```
4. Start the server:
```bash
npm start
```
5. Open your browser and navigate to:
```
http://localhost:3000
```
## Usage
1. Enter your department name
2. Describe when your office will be closed
3. Specify when your office will reopen
4. Add any additional information (optional)
5. Click "Generate Sign" to create your standardized closure sign
6. Click "Print Sign" to print the sign
7. The JSON data at the bottom can be used for CMS integration
## Development
For development with auto-restart on file changes:
```bash
npm run dev
```
## License
City and County of San Francisco © 2025