A simple and efficient URL shortener built with React, NestJS, and Turso (SQLite).
Nice Link allows users to shorten long URLs and easily manage them. The project is built with a modern tech stack and provides a robust backend with NestJS and Turso (SQLite), along with a responsive frontend using React.
- Frontend: React, Tailwind, JavaScript
- Backend: NestJS
- Database: Turso (SQLite)
- Deployment: Netlify (frontend), Vercel (backend), Docker, Kubernetes (optional)
To get a local copy up and running, follow these steps.
- Node.js (>=14.x)
- npm or yarn
- Docker (optional for deployment)
-
Clone the repo
git clone https://github.com/AdrianPalacios03/NiceLink.git
-
Install NPM packages for both the frontend and backend
cd url-shortener/backend npm install cd ../frontend npm install
-
Set up environment variables in
.env
file for both frontend and backendTURSO_DATABASE_URL=your_turso_database_url TURSO_AUTH_TOKEN=your_turso_auth_token
-
Start the backend server
cd backend npm run start:dev
-
Start the frontend server
cd frontend npm start
Make a POST request to the root endpoint with the original URL.
curl -X POST http://localhost:3000/ -H "Content-Type: application/json" -d '{"originalUrl": "https://example.com"}'
Access the short URL by navigating to http://localhost:3000/shortUrl
.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Adrián Palacios - portfolio