Conforto is a luxury modern furniture store!
Designed with figma and built with Next.js, it uses /pages router, Typescript for type checking and CSS modules for styling.
To store the products data a MySQL schema with a single table is used:
CREATE TABLE product (
id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
name VARCHAR(255) NOT NULL,
description VARCHAR(500) NOT NULL,
category VARCHAR (255) NOT NULL,
image_url VARCHAR(500) NOT NULL
);
image_url
pattern = /category/image.jpg
The database config must be in the .env file (See more):
DATABASE_URL="mysql://USER:PASSWORD@HOST:PORT/DATABASE"
A AWS S3 bucket have to be created and configured. See this link.
env.local
file:
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
AWS_BUCKET_NAME=
NEXT_PUBLIC_BASE_URL=
$ git clone https://github.com/CaioRigloski/conforto-luxury-furniture.git
$ npm install
- for development usage:
$ npm run dev
- for production usage:
$ npm run build
$ npm run start