Giter Site home page Giter Site logo

chen-ky / abbr.ninja-web Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 90 KB

Frontend server for abbr.ninja

Home Page: https://abbr.ninja

License: Apache License 2.0

Dockerfile 4.16% HTML 24.56% Python 18.79% CSS 27.50% JavaScript 18.39% Smarty 6.59%
uri url-shortener url link-shortener frontend python bottle urlshortener linkshortener idn

abbr.ninja-web's Introduction

abbr.ninja Frontend

This is the frontend code for the link shortener on abbr.ninja.

Source code for:

Building the Container

podman was used to run and build the container but this should also work for docker.

  1. Clone this repository. git clone https://github.com/chen-ky/abbr.ninja-web.git
  2. Change directory into the cloned repository. cd abbr.ninja-web
  3. Build the container with the provided Dockerfile. podman build -t <INSERT_CONTAINER_TAG_NAME> .
  4. Run the newly built container. podman run -p 8080:8080 -e API_BASE_URL="<INSERT_URL_FOR_API_SERVER>" -d -t <INSERT_CONTAINER_TAG_NAME>"
  5. You should be able to go to http://localhost:8080 for the webpage.

Environment Variables for Container

  • API_BASE_URL (Required): The URL endpoint for the API server for API calls. Example: https://api.abbr.ninja/api/v1
  • HOST (Optional): IP address the server will listen on. Default: 0.0.0.0
  • PORT (Optional): Network port that the server will listen on. Default: 8080

Deployment Recommendation

Donations

Feel free to donate if you find this helpful!

  • BTC:
    • bc1qww8sktvenl044juafgvt068yah9dxuwrhht4kq
    • 16G7WnKzNdYc48NtEeiVuLNeaLcoXBw1K4
  • ETH:
    • 0x5d67690768F0Fc4780c578393Ca567e5bCb38378

abbr.ninja-web's People

Contributors

chen-ky avatar dependabot[bot] avatar

Watchers

 avatar

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.