Skip to content

CaioRigloski/conforto-luxury-furniture

Repository files navigation

Screenshot

Conforto

Conforto is a luxury modern furniture store!

Technologies

Instalation and Usage

Designed with figma and built with Next.js, it uses /pages router, Typescript for type checking and CSS modules for styling.

  • MySQL

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"
  • AWS S3

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=
  • Commands

$ 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