This project was generated with Angular CLI and utilizes Firebase for Database, Storage, and Hosting to create a fully functional and customizable template for your Google Developer Group's DevFest/IWD/Event. This project has been designed to continue to be your Event website solution without having to create a new site or Firebase project every year. Simply update the Firebase node in the config and the site resets awaiting your next year's Event data. All the while preserving your previous year's data in the same Firebase project.
https://delorean-demo.firebaseapp.com/
- Simple site config setup
- Simple event schedule management
- Simple sponsor management
- Simple ticket management
- Simple speaker management
- Featured speakers section
- Featured venue section
- "My Schedule" for Attendees
- Google Tag Manager enabled
- Session feedback
- Code of Conduct
- Install Angular CLI (
npm install -g @angular/cli
). - Install Firebase Tools (
npm install -g firebase-tools
). - Clone this repository:
git clone https://github.com/neojato/DeLorean-v2.git
. - Run
npm install
from the project root. - Create a new Firebase project (if you don't have one already).
- Grab a Google Maps API Key for your project.
- Enable the Google Maps Geocoding API
- Run
firebase login
and thenfirebase init
and link to your Firebase Project.- Select Database, Functions, and Hosting
- Select your Firebase Project (created earlier)
- Use default filename for Database Rules
- Enter
N
when asked to overwrite Database Rules - Select
JavaScript
when asked for Cloud Functions language - Enter
Y
when asked to use ESLint - Enter
N
when asked to overwritefunctions/index.js
- Enter
Y
when asked to install dependancies - Type
dist
for your public directory - Respond yes to configure as a single-page app
- Replace the generated
firebase.json
with the contents fromfirebase.json.template
- Copy
firebase.config.ts.template
tofirebase.config.ts
and populate fields with your Firebase and Google Maps Keys.- Change the value for the
devfestYear
key to the current year - NOTE: Currently you will need modify this value annually to reuse this Firebase Project for your annual event
- Change the value for the
- Update
manifest.json
with your Event's details to enable Progressive Web App (PWA) capabilities.- (Optional) If you want to fully customize the PWA experience, you can easily generate the
manifest.json
& correctly sized app icons using this tool: App Manifest Generator
- (Optional) If you want to fully customize the PWA experience, you can easily generate the
This project is open for contributions, suggestions, and ideas. Feel free to submit a PR and/or create an Issue with bugs, suggestions, and ideas. Stars are always welcome too!
See list of contributors.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
- From the Firebase Console, go to "Authentication" and enable the Google sign-in method.
- Log into your site using your Google account.
- From the Firebase Console, go to "Authentication" and copy the User UID for your email address.
- From the Firebase Console, go to "Database", then "Real-Time Database" and create a parent node called
admins
then add your copied User UID as the key with a value oftrue
. - (Optional) Replace
hero.png
anddevfest.png
with your own image for your Event or of Your City.
- Create an Account and a Container on Google Tag Manager.
- Once created, you will receive the tracking snippet.
- Replace each instance of
GTM-XXXXXXX
withinindex.html
with your tracking ID following the same pattern.
- Replace each instance of
- Now you are able to create Tags for:
- Click the Profile dropdown in the navbar and select "Site Config" to fill out all the details for your Event.
- NOTE: The uploaded venue image is stored in Firebase Storage if you need to retrieve it later.
- Click the Profile dropdown in the navbar and select "Ticket Config" to create ticket boxes to advertise levels available for purchase to your Event.
- NOTE: The tickets auto-appear in a section on the homepage but can only be managed from this admin page.
- Click the "Speakers" link in the navbar and then click on the "Create Speaker" button to add a speaker.
- Rinse and repeat for however many speakers you have for your Event.
- Check the "Featured" option to have that speaker also display on the homepage in the "Featured Speakers" section.
- NOTE: The uploaded profile images get stored in Firebase Storage if you need to retrieve them later.
- Click the "Schedule" link in the navbar and then click on the "Create Section" button to add a section.
- This allows you to break your schedule into sections like "Breakouts - 10:00 AM" and "Lunch".
- Click on the "Create Session" button to add a session.
- NOTE: It is required to have section(s) created in order for sessions to appear!
- NOTE: It is recommended to have added the speaker prior to adding their session.
- NOTE: You can Edit/Delete the session from the session's detail page.
- Click the "Sponsors" link in the navbar and then click on the "Create Level" button to add a level.
- This allows you to break your sponsors into customized tiered levels like "Gold", "Silver", and "Bronze".
- Click on the "Create Sponsor" button to add a sponsor.
- NOTE: It is required to have level(s) created in order for sponsors to appear!
- NOTE: The levels and sponsors auto-appear in a section on the homepage but can only be managed from the Sponsor page.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Run npm run build-prod
to generate an optimized production build.
Run npm run deploy
to generate an optimized production build and deploy the dist/
directory to Firebase Hosting (along with Firebase Real-Time Database rules & Firebase Functions).
Congrats on launching your Event website!
Please let me know if you used this template with a Pull Request and will get you added to the list below!
Name | Name | Name |
---|---|---|
DevFest KC | DevFest Muncie | Windy City DevFest |
DevFest Nairobi | Eldoret Techweek | IWD Fresno |
DevFest Los Angeles | Valley DevFest 2018 | WTM Taipei |
Project is published under the MIT license.
Feel free to clone and modify repo as you want, but don't forget to keep the reference to original authors, thanks!