Skip to content

MISTOM/ecommbackend

Repository files navigation

Sneaker Empire Backend

This is the backend for the Sneaker Empire application. It's built with SvelteKit Endpoints, Prisma ORM, and other technologies.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Node.js v21.x
  • npm v10.x
  • Mysql running

.env.example

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';

Installing

  1. Clone the repository
git clone https://github.com/Transcomm/sneaker-empire-backend.git
  1. Install NPM packages
npm i
  1. Run migrations and seed the Database
npx prisma migrate dev && npx prisma db seed
  1. Initialize the Prisma Client
npx prisma generate
  1. Start Development server
npm run dev

Deployment

To build the application, run:

npm run build

Then you can preview your production build locally

npm run preview

Documentation

For more details on the API endpoints and how to use them, check out the Postman documentation.

About

To the cloud, and beyond!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages