A URL shortener made with React.js, TypeScript, Express.js, and PostgreSQL.
POST /api/shorten-url
Parameter | Type | Description |
---|---|---|
long_url |
string |
Required. Add the long_url to the body of the request |
GET /${short_path}
Parameter | Type | Description |
---|---|---|
short_path |
string |
Required. Shortened path |
To deploy this project run
npm run deploy
To run this project, you will need to add the following environment variables to your .env file
DB_URL
Clone the project
git clone https://link-to-project
Go to the project directory
cd my-project
Install dependencies
npm install
Start the server
npm run dev