中文 / English
Use online: https://real-address-generator-3li.pages.dev/
- Generate random real address information, including name, gender, phone number, and detailed address
- Support address generation for multiple countries
- Visualize generated address location on a map
- Save and manage generated addresses
- Support bilingual interface in Chinese and English
- HTML5
- CSS3
- JavaScript (vanilla)
- Google Fonts
- Font Awesome icon library
- Open the
index.html
file in a browser to run the application - Select the desired country from the dropdown menu
- Click the "Generate Address" button to get a new random address
- Click the "Save Address" button and add a note to save the current address
- View and manage saved addresses in the table
index.html
: Main HTML structurestyles.css
: Stylesheet filescript.js
: JavaScript logic codefunctions/api/address.js
: Backend API function (for address generation)
-
Ensure your project is pushed to a GitHub repository.
-
Log in to your Cloudflare account and go to the "Pages" section.
-
Click the "Create Project" button.
-
Choose the "Connect to Git" option, then select the GitHub repository containing your project.
-
On the configuration page:
- Set the project name
- Select
main
or your main branch for the production branch - Build settings:
- Build command: leave blank (as this is a static website)
- Build output directory: leave blank or enter
/
-
Click "Save and Deploy".
-
Cloudflare Pages will automatically deploy your website. Once deployment is complete, you'll receive a
*.pages.dev
URL. -
(Optional) If you want to use a custom domain, you can add and configure your domain in the project settings.
Note: If your project uses environment variables (such as API keys), please add these variables in the "Environment Variables" section of your Cloudflare Pages project settings.
You can customize the appearance of the application by modifying the styles.css
file, or edit script.js
to adjust the functional logic.
Issues and pull requests are welcome to improve this project.
This project is licensed under the MIT License.
The initial version is from chatgpt.org.uk, modified by lirtual.