Code Monkey home page Code Monkey logo

yals's Introduction

yals - yet another link shortener (w/ custom URLs)

A link shortener that allows you to set custom URLs, expiration dates and manage them from your account.

http://yals.zreo.me/

TODO

  • refactor navbar
  • add user/login/logout to context
  • use context instead of query
  • redesign many of the pages
  • update this README

Features

  • shorten any link

  • create an account to manage your links

  • set expiry dates for your links

  • delete your links whenever you want

  • easily share your links with a QR code

Soon

  • more functionality to accounts including account settings (change password etc.)

  • analytics for your links, such as # of clicks, times, location etc. to better understand who's using your links

  • mobile-friendly design

Known issues

  • forms clear when changing colour mode

  • invalid emails may be accepted when creating accounts (will be fixed by requiring account to be validated)

  • some links are not accepted as valid

Setup

You'll need a .env with the following variables MONGODB_URI, SESSION_SECRET (any string for redis to use), REACT_APP_DOMAIN (the domain for your link shortener e.g. yals.zreo.me), REACT_APP_GOOGLE_CLIENT_ID (Google API key for Google authentication), REDISTOGO_URL (your redis to go link)

Other

I tried to plan and keep track of the project using Trello. But I mostly just used Notepad documents.

Here's the stack I used:

  • Frontend: React, Chakra UI

  • Backend: Node.js/Express, Apollo GraphQL (first time using it, I much prefer it to a RESTful API), Mongoose

  • Data: MongoDB, Redis (not sure if i'm using it right, but it's working for storing sessions)

  • Forms: react-hook-form (prefer this over formik)

  • Hosting: Heroku (tried Vercel and gave up on DigitalOcean)

yals's People

Contributors

azaini101 avatar dependabot[bot] avatar zaini avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

idotik

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.