Krývo is a secure URL shortener application that allows users to shorten long URLs while ensuring the security of the stored URLs using bcrypt encryption. This application is built with Express.js, Sequelize ORM, MySQL, and bcrypt.
- Shorten long URLs to shorter ones.
- Securely store URLs with bcrypt encryption.
- Redirect short URLs to their original long URLs.
- Comprehensive API documentation with Swagger.
- Clone the repository.
- Install dependencies:
npm install
- Configure your MySQL database connection in
config/database.js
and your environment variables in.env
. - Run the migrations to set up the database schema:
npx sequelize-cli db:migrate
- Start the application:
npm start
Access the API documentation at ${process.env.BASE_URL}/api-docs
.
POST ${process.env.BASE_URL}/api/
: Shorten a long URL.GET ${process.env.BASE_URL}/api/:shortUrl
: Redirect to the original URL.
This project is licensed under the MIT License.