Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashmit4818/newsletter-signup-page
https://github.com/ashmit4818/newsletter-signup-page
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ashmit4818/newsletter-signup-page
- Owner: ashmit4818
- License: mit
- Created: 2023-04-22T18:56:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-22T19:51:35.000Z (almost 2 years ago)
- Last Synced: 2024-11-17T06:36:53.167Z (2 months ago)
- Language: HTML
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Newsletter Project
This project is a simple newsletter signup form that uses Node.js and Mailchimp to add subscribers to a mailing list.
## Setup
1. Clone this repository to your local machine.
2. Install the dependencies by running `npm install`.
3. Create a `.env` file in the root directory of your project and define the following variables:MAILCHIMP_API_KEY=your_mailchimp_api_key
MAILCHIMP_LIST_ID=your_mailchimp_list_id4. Start the server by running `npm start`.
## Usage
1. Open your web browser and go to `http://localhost:5000`.
2. Fill out the form with your first name, last name, and email address.
3. Click the "Subscribe" button to submit the form.
4. If the form was submitted successfully, you will be redirected to a success page. Otherwise, you will be redirected to an error page.## Dependencies
- express
- body-parser
- path
- node-fetch
- dotenv## License
This project is licensed under the MIT License - see the LICENSE file for details.