Skip to content

hsdt/shorten-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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