Skip to content

samuelgomez4/Teslo-Shop

Repository files navigation

Steps

Dev

  1. Clone repository.
  2. Install dependecies: npm install
  3. Create a copy of env.template and rename it to .env and add the env variables. For AUTH_SECRET run npx auth secret. Read more: https://cli.authjs.dev
  4. Start docker image: docker compose up -d
  5. Run primsa migrations npx prisma migrate dev
  6. Excecute seed npm run seed - To do this we had to install ts-node and create a tsconfig with tsc --init in the same folder as the seed (something to note is that tha alias @ can't be used in this file because if we're excecuting it with ts-node alone and it's not part of the bundle)
  7. Run proyect: npm run dev
  8. Limpiar el LocalStorage del navegador

Prod

  1. Replace database env variable with the production one.
  2. Run npx prisma migrate deploy to create the database or change the schema.
  3. First time one could run npm run seed but be careful to not run it again in production because data would be wiped out.

About

Teslo shop is a demo of an e-commerce based on Tesla store

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors