Follow the 5 steps guide below to get started on Firebase!
- Step 0 - Clone Me
- Step 1 - Setup Serverless provider
- Step 2 - Configuration
- Step 3 - Build the package
- Step 4 - Deployment
Also do let us know how we can help make this better 😺
$ git clone https://github.com/uilicious/inboxkitten.git
- Go to Firebase and click on
Get Started
. - Sign in with your favorite Google account.
- Click on
Add Project
and create your own firebase inboxkitten project. - Remember the project ID
On your local machine where your InboxKitten is located at,
# Go to the root folder of InboxKitten
$ cd <the place where you clone your inboxkitten>
# Ensure that firebase CLI tool is installed
$ npm install -g firebase-tools
# Login to your firebase account
$ firebase login
# Set your firebase project
$ firebase use --add <project name that you remembered>
OR
- Go to Cloudflare and signup with a domain.
- Setup cloudflare worker and get an API key
In the root directory of Inboxkitten, run the following command
$ ./config.sh
During the run time of ./config.sh
, there are three environment variables that is being used to set the configuration for your configuration files.
MAILGUN_EMAIL_DOMAIN
- any custom domain that you owned or the default domain in MailgunWEBSITE_DOMAIN
- any custom domain that you owned. If you use your default firebase url, it will be<Your project>.firebaseapp.com
MAILGUN_API_KEY
- retrieve the api key from your Mailgun account
$ ./build.sh
./build.sh
will package the three components to be ready for deployment.
For API deployment on Firebase:
# Run the deployment script
$ ./deploy/firebase/deploy.sh
For API deployment on Cloudflare:
# Run the deployment script
$ ./deploy/cloudflare/deploy.sh