This repository contains the LSCS Links system, a URL shortening service for the De La Salle University - Laguna Student Council Services (LSCS). It allows users to create, manage, and track short links with associated long URLs and additional metadata such as committee tags.
- Link Shortening: Convert long URLs into short, manageable links.
- Custom Metadata: Add committee tags to links for easier categorization and filtering.
- Link Tracking: Monitor the creation date and other useful data for each short link.
The core functionality is built around a Mongoose model (linkModel
), which represents the structure of a link:
- Short Link: A unique short version of the original URL.
- Long Link: The original long-form URL.
- Committee: A tag used for filtering links based on the relevant committee.
- Created At: Timestamp to track when the link was created.
- Clone the repository:
git clone https://github.com/dlsu-lscs/lscs-links.git
- Install dependencies:
npm install
- Set up environment variables in a
.env
file:MONGODB_URI=<your_mongodb_uri> PORT=<your_preferred_port>
- Start the server:
npm start
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a pull request.
This project is licensed under the MIT License. See the 'LICENSE' file for more details.
Maintained by La Salle Computer Society's Research and Development Committee.