Git Product home page Git Product logo

zws's Introduction

Number of shortened URLs Number of visited URLs ZWS version

Shorten URLs with invisible spaces.

Or, configure your own instance to use any other kinds of characters.

Contributors

Code Contributors

This project exists thanks to all the people who contribute.

Special thanks to Jaex for integrating ZWS into ShareX.

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

A status page for the official zws.im instance of ZWS is available at status.zws.im.

Self-hosting

Heroku

Deploy to Heroku

Running an instance of ZWS on Heroku is the easiest way to self-host. You can also stay totally within the free limits of both the web process and the Heroku Postgres database. Note that the Hobby Dev (free) plan of Heroku Postgres has a row limit of 10,000, which might not be enough for your use case. Consider using the API key feature of ZWS to restrict access to your instance.

DigitalOcean

Deploy to DO

We provide a template app specification YAML file to allow users to launch an instance on the DigitalOcean App Platform.

  1. Clone the repository
  2. Copy db.example.env to db.env and fill in the values
  3. Copy example.env to .env and update the DATABASE_URL environment variable to match the values in db.env
  4. Run docker-compose up -d (this will automatically apply database migrations)

Database migrations

Database migrations are automatically applied on Heroku and Docker Compose. You can easily run database migrations manually through Docker Compose by running the following command:

docker-compose up migration

Make sure the DATABASE_URL environment variable in .env is accurate.

If you are hosting your instance on Heroku, migrations are automatically applied. If you need to manually apply migrations or are only using Heroku for your database you'll need the credentials for your database:

  1. Get the Heroku Postgres connection URI from
  2. Create a .env file and enter in the connection URI

Example:

DATABASE_URL=postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public

Afterward you can run the migration commands shown above.

Badges

ZWS instances expose two routes that implement the Shields endpoint schema:

Image Route Description Example
Number of shortened URLs /stats/shields/urls Number of shortened URLs https://img.shields.io/endpoint?url=https://api.zws.im/stats/shields/urls
Number of visited URLs /stats/shields/visits Number of visited URLs https://img.shields.io/endpoint?url=https://api.zws.im/stats/shields/visits
ZWS version /stats/shields/version ZWS version https://img.shields.io/endpoint?url=https://api.zws.im/stats/shields/version

zws's People

Contributors

jonahsnider avatar renovate[bot] avatar dependabot-preview[bot] avatar dependabot-support avatar monkeywithacupcake avatar

Stargazers

Mehvish Siddique avatar

Watchers

James Cloos 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.