Live URL: https://e-commerce-chi-six.vercel.app/
- Clone repository from
git clone git@github.com:AnisurRahmann/e-commerce.git
- Run
npm install
- Create a
.env
file & add your postgres database url toDATABASE_URL
variable. - Run
npx prisma db push
to create a new database instance - Run
npm run prisma:seed
to seed product data - Run
npm run dev
and project will be up and running onlocalhost:3000
I have written few E2E tests with cypress. You can follow the steps to run the test cases.
npx cypress install
npx cypress open
Cypress gui will open the following. All the tests cases will be found cypres/e2e/home.cy.ts
Remix run
A modern and fantastic framework for ReactJs project.- I did not use any state management library as there is not much reason to use it. I have tried to keep props diffing withing 3 degree level components. Which is not that much mess for this project.
prisma
A modernORM
which i love so much.postgres
for database.Cypress
for e2e testing.vercel
for deployment.
- As per design i did not do any responsive works. That would be a great thing to improve.