Skip to content

Simple URL shortener that doesn't need an account

Notifications You must be signed in to change notification settings

pavece/pavece-urlShort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logo


This is a simple URL shortener that saves the URLs in the user's browser. It simply consists in a backend service that handles the creation which also gets some data from the page, handles the database storage (mongo db). And handles the redirection.

It also has a frontend part mad with react which consists of a simple landing page and a user panel.


Make it work

1º Create a .env file in the backend folder and add the following values.

DATABASE_PASSWORD= MONGO DB PASSWORD
DATABASE_USERNAME= MONGO DB USERNAME
DATABASE_NAME= MONGO DB DABATABASE NAME

NOTE: The project is prepared for mongo db atlas. If you prefer to use other type of mongo db hosting you will need to change the URL into app.ts

2º Start the project

cd urlShort-backend
npm install
npm run dev
cd urlShort-frontend
npm install
npm run dev

NOTE: Both services need to be running at the same time, use two terminals

3º Navigate to http://localhost:3000 and enjoy

Some images of the page

landing page


app page

About

Simple URL shortener that doesn't need an account

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published