Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 1.51 KB

README.md

File metadata and controls

68 lines (51 loc) · 1.51 KB

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