BrightkyEfoo / ecommerce-client

A simple E-commerce frontend for test. Using NextJs. It will call Rest API of the repo ecommerce-server

Home Page:http://5.189.158.182

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ecommerce Web App FRONTEND

You can go to the root repository project here

Getting Started

Prerequisites

Make sure you have an instance of api-server which is running

Dev

First ensure that you have nodeJs and npm installed on your machine, If not you can see how to get them installed here Clone repo first, then open a terminal at the root of the project and then run the command then install all dependencies with

npm i

After this start the project by running the command

npm run dev

Open http://localhost:3000 with your browser to see the result.

If you want run prod server make sure you get docker in your machine and run the commande : make sure that your port 80 on your machine is free to use.

If not, edit the docker-compose file here and then change the 80 with the new port you want use at the line 9

docker compose -f docker-compose.yml up -d

And then open http://localhost:3000 with your browser to see the result.

SiteMap

NAME URL-PATTERN EXAMPLE AVAILABILITY
home / available
products /products available
one product /products/:product-slug /products/661d45f1b5d23b69bd88a89a available
categories /categories available
one category /categories/:category-slug /categories/Networking-661d4730d9f85cc146ddb87d available
products of a category /categories/:category-slug/products /categories/Networking-661d4730d9f85cc146ddb87d/products available
login /auth/login available
register /auth/register available
cart /dashboard/cart available
profile /dashboard/profile unavailable
dashboard /dashboard unavailable

Deployed version

The website is available online here

Credentials

If you want to use application with an account you can register or directly use admin credentials

EMAIL PASSWORD
brightefoo@gmail.com brightkyefoo

@BrightkyEfoo

About

A simple E-commerce frontend for test. Using NextJs. It will call Rest API of the repo ecommerce-server

http://5.189.158.182

License:MIT License


Languages

Language:TypeScript 97.6%Language:JavaScript 1.2%Language:CSS 0.9%Language:Dockerfile 0.3%