This project is a Node.js application that integrates with the Eventbrite API to manage events. It includes functionalities such as fetching organizations, creating events, creating ticket tiers, and assigning ticket tiers to events.
- Retrieve a list of organizations associated with the user.
- Create new events with specified details.
- Create ticket tiers for events.
- Assign ticket tiers to events.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them:
- Node.js
- npm (Node Package Manager)
- Eventbrite account and API key
A step by step series of examples that tell you how to get a development env running:
-
Clone the repository:
git clone https://github.com/adanzweig/nodejs-eventbrite.git
-
Navigate to the project directory:
cd nodejs-eventbrite -
Install dependencies:
npm install
-
Create a
.envfile in the root directory and add your Eventbrite API key:API_KEY=your_eventbrite_api_key_here -
Run the application:
node index.js
- To fetch organizations associated with your Eventbrite account, the application will execute the
getOrganizationsfunction. - To create a new event, use the
createEventfunction with appropriate parameters. - To create ticket tiers, use the
createTicketsTiersfunction. - To assign ticket tiers to events, use the
assignTicketTiersToEventfunction.