Skip to content

ueberflieger50/link-short

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

link-short

A simple easy to deploy Link Shorter using express.js as the webserver, passport.js for user authentication and vue.js for the frontend.
Screenshot

Docker

  1. Change the environment variable in the Dockerfile (Optional)
  2. Build the Docker image
docker build -t link-short .
  1. Run the Docker image

Without envirement variables configured

docker run -d --name link-short \
 -e SESSION_SECRET=[your_session_secret] \
 -v link-short:/link-short/server/data/ \
 -p 3000:3000 \
 --restart unless-stopped \
 link-short

With envirement variables configured

docker run -d --name link-short \
 -p 3000:3000 \
 -v link-short:/link-short/server/data/ \
 --restart unless-stopped \
 link-short

Manual Install

  1. Install dependencies
    • For production
npm ci
- For development
npm install
  1. Configure the .env fille in the server directory (A sample is provided as .env.sample)
cp server/.env.sample server/.env

After copying the sample file don't forget to configure it 3. Start the server (make shure you are in the home directory of the application)

npm start

Then go to http://localhost:3000

Api

Endpoints without Authentication

Endpoints for Authentication

For every user

For Admin

Endpoints with Authentication

Endpoints with Admin specific Authentication

License

This project is covered under the MIT License