Skip to content

Latest commit

 

History

History
67 lines (37 loc) · 1.9 KB

README.md

File metadata and controls

67 lines (37 loc) · 1.9 KB

Short - Open Source Link Shortening Website

This is an open source Link shortening Progressive Web App (PWA) written in Django and NuxtJS. With a single click, you can shorten any valid URL.

The website is decoupled into the frontend and the backend which is served over an API using Django Restframework. Please note, the above package contains only the frontend! You can find the backend here. A live demo of this project can be found on netlify.

alt short

How to Deploy

Note: To proceed you must install NodeJS and Git on your system.

# clone the repository
$ git clone https://github.com/iamoracle/short-frontend.git

# navigate to the cloned directory
$ cd short-frontend

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

Upload to a live server

After running the following commands; dist folder will be generated which is a distribution file that can be uploaded to any web server.

# build for production
$ npm run build

# launch server, not important!
$ npm run start

# generate static project
$ npm run generate

Custom Settings to avoid errors!

To use your own custom backend/frontend

Go to assets/config.js to modify the default URL of your frontend app. You can change it to whatever URL you deploy your frontend to.

Go to nuxt.config.js to change the proxy URL to that of your backend.

Note: after changing any settings please remember to regenerate the distribution folder

Deploy to Netlify

Grab the dist folder and upload the content to Netlify

New to NuxtJS?

For detailed explanation on how things work, check out Nuxt.js docs.

Contribution

You are free to contribute by forking this repo!