This is the backend for the Sneaker Empire application. It's built with SvelteKit Endpoints, Prisma ORM, and other technologies.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js v21.x
- npm v10.x
- Mysql running
DATABASE_URL = '';
SECRET_KEY = '';
REFRESH_KEY = '';
RESET_KEY = '';
CLOUDINARY_NAME = '';
CLOUDINARY_API_KEY = '';
CLOUDINARY_API_SECRET = '';
SENDGRID_API_KEY = '';
BASE_URL = 'https://sneaker-empire-ten.vercel.app';
BODY_SIZE_LIMIT = 'Infinity';- Clone the repository
git clone https://github.com/Transcomm/sneaker-empire-backend.git- Install NPM packages
npm i- Run migrations and seed the Database
npx prisma migrate dev && npx prisma db seed- Initialize the Prisma Client
npx prisma generate- Start Development server
npm run devTo build the application, run:
npm run buildThen you can preview your production build locally
npm run previewFor more details on the API endpoints and how to use them, check out the Postman documentation.