Code Monkey home page Code Monkey logo

firebase-shorten-url's Introduction

Firebase Shorten URL

This is a demonstrate how to use the Firebase Dynamic Link API to build the shorten URL app.

Target:

  • Simple
  • Fast
  • Fast ๐Ÿ˜Ž

Live: https://s.duyet.net

Locally development

  1. Set up Node.js and the Firebase CLI

    yarn global add firebase-tools
    

    To initialize project: Run firebase login to log in via the browser and authenticate the firebase tool.

  2. Setup packages

    cd functions/ && yarn
    cd hosting/ && yarn
    
  3. Go to https://console.firebase.google.com and create new project.

  4. Setup env variables, copy and modify env.default.sh to env.local.sh

    Get the api_key by Project settings > General > Web API Key

    Get the domain_uri_prefix by Dynamic Links, then Add URL prefix

    firebase functions:config:set config.api_key=AIzaSyC8mZm**********
    firebase functions:config:set config.domain_uri_prefix=duyet.page.link
    

    Run: bash ./env.local.sh

  5. Update the frontend config: hosting/gatsby-config.js:

module.exports = {
 siteMetadata: {
   title: 'duyet shorten url',
   description: 'Shorten URL by Firebase Dynamic Link',
   author: '@duyet',
 },
...
  1. Running in local: https://firebase.google.com/docs/functions/local-emulator

    • Export local configs: firebase functions:config:get > functions/.runtimeconfig.json
    • Start firebase function: firebase serve
    • Start hosting local in another terminal: cd hosting && yarn develop
    • Open the UI in browser: http://localhost:8000

Deploy

Deploy serverless functions and hosting to Firebase

firebase deploy

Licence

MIT

firebase-shorten-url's People

Contributors

dependabot[bot] avatar duyet avatar imgbotapp avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

firebase-shorten-url's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Why this project so huge?

I clone git and its about 40MB total like what...

And also its taking to much time to build because of huge depebdencies..

I mean its good project but can you made lite version?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/deploy_functions.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/deploy_hosting.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
functions/package.json
  • axios 1.6.8
  • firebase-admin 12.1.0
  • firebase-functions 5.0.1
  • @babel/core 7.24.5
  • @babel/eslint-parser 7.24.5
  • @babel/preset-react 7.24.1
  • eslint 8.57.0
  • eslint-plugin-promise 6.1.1
  • firebase-tools 13.8.1
  • node 20
hosting/package.json
  • @ant-design/compatible 5.1.2
  • antd 5.17.0
  • axios 1.6.8
  • gatsby 5.13.4
  • gatsby-image 3.11.0
  • gatsby-plugin-google-gtag 5.13.1
  • gatsby-plugin-manifest 5.13.1
  • gatsby-plugin-offline 6.13.2
  • gatsby-plugin-react-helmet 6.13.1
  • gatsby-plugin-sharp 5.13.1
  • gatsby-source-filesystem 5.13.1
  • gatsby-transformer-sharp 5.13.1
  • prop-types 15.8.1
  • react 18.3.1
  • react-copy-to-clipboard 5.1.0
  • react-dom 18.3.1
  • react-helmet 6.1.0
  • @babel/eslint-parser 7.24.5
  • @babel/preset-react 7.24.1
  • eslint 8.57.0
  • eslint-config-airbnb 19.0.4
  • eslint-config-airbnb-base 15.0.0
  • eslint-plugin-import 2.29.1
  • eslint-plugin-jest 28.5.0
  • eslint-plugin-jsx-a11y 6.8.0
  • eslint-plugin-react 7.34.1
  • eslint-plugin-react-hooks 4.6.2
  • firebase-tools 13.8.1
  • prettier 3.2.5

  • Check this box to trigger a request for Renovate to run again on this repository

Improvement In UI.

Hello Maintainers ,

Issue -> Improvement :

Current UI :

duyet

What Changes can be made :

Improving UI

Please Assign this issue to me !

can you make a full tutorial for your this project ?

hello friend, I really like this project. because I was able to study and become a reference in my school work, this is actually not a serious problem. but as a beginner I find it difficult to use this because there is no full tutorial,

so can you make a full tutorial for your good project, ? please

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.