Skip to content

flowfree/secure-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ba5b8ce · Jan 25, 2024

History

19 Commits
Oct 24, 2023
Oct 24, 2023
Jan 23, 2024
Jan 25, 2024
Oct 24, 2023
Oct 24, 2023
Jan 25, 2024
Jan 25, 2024
Jan 9, 2024
Jan 9, 2024
Jan 9, 2024
Oct 24, 2023
Oct 24, 2023
Oct 24, 2023

Repository files navigation

Secure URL Shortener

Simple URL shortener project with cybersecurity in mind.

About Google Safe Browsing API

The Safe Browsing API is a service by Google that allows you to check URLs against Google's updated lists of unsafe web resources. This project is using the Safe Browsing API to ensure that it is not only generates short URLs, but also guarantees their safety.

You need to get a Safe Browsing API key to use this app. For more information, read how to set up an API key in their docs.

Running on development machine

Once you have cloned this repo, follow these steps to run the app on your local machine:

  1. Rename the .env_local_sample file into .env.local and paste your Safe Browsing API key:

    SAFE_BROWSING_API_KEY=<your api key>
    
  2. Install the dependencies:

    npm install
    
  3. Run database migration:

    npx prisma migrate dev
    

    This command will create the SQLite database and apply the DB migrations. Note that the command is npx instead of npm.

  4. Run the dev server:

    npm run dev
    

Visit http://localhost:8000 using your browser to open the app.

License

MIT

About

Simple URL shortener app with cybersecurity in mind.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published