Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.24 KB

README.md

File metadata and controls

58 lines (38 loc) · 1.24 KB

shorten-url

HSDT Shorten URL

Service Dependencies

Development Guide

  1. Set up Node.js and the Firebase CLI
npm install -g firebase-tools
  1. Initialize Firebase SDK for Cloud Functions
# config firebase functions
firebase functions:config:set config.api_key=YOUR_WEB_API_KEY
firebase functions:config:set config.domain_uri_prefix=YOUR_DOMAIN_URI_PREFIX

# run the following command in the functions directory before running firebase serve
# cd functions
firebase functions:config:get > .runtimeconfig.json

# However, if you're using Windows PowerShell, replace the above command with:
firebase functions:config:get | ac .runtimeconfig.json
  1. Start local development
# install dependencies
cd functions
npm install
npm run serve

# or
firebase serve --only hosting,functions

# deploy
firebase deploy --only hosting,functions

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.

LICENSE

The project is licensed under the MIT License - see the LICENSE file for details