This API allows you to shorten URLs, manage users, and track visits. It is built with Node.js, Express, and Prisma, and uses TypeScript for a better development experience.
- Node.js: JavaScript runtime environment.
- Express: Web framework for Node.js.
- Prisma: ORM for Node.js and TypeScript.
- TypeScript: Programming language that extends JavaScript.
-
Clone the repository:
git clone https://github.com/DairoCantillo/joa-api.git cd joa-api
-
Install dependencies:
npm install
-
Configure environment variables: Create a
.env
file in the root of the project and add the following variables:DATABASE_URL="your_database_url" PORT=3000 JWT_SECRET="your-secret-key"
-
Run Prisma migrations:
npx prisma migrate
To start the server in development mode:
npm run dev
Build the project:
npm run build