Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chara0511/bsale-store

Repository files navigation

BSale Store test

🔥 Table of Contents

Overview

💻 Desktop version

screenshot screenshot

📱 Mobile version

screenshot screenshot

Built With

Features

This is a Next.js project that started with create-next-app, which was created as a challenge post to BSale. The challenge consisted in creating a BSale store (test) that displays products, filtered products and grouped by category to which they belong from a database.

How To Use

Step 1. Getting Started

To clone and run this application, you'll need Git, Node.js (which comes with npm) installed on your computer and Yarn. From your command line:

# Clone this repository
$ git clone https://github.com/jcarlos0511/bsale-store.git

# Enter the created folder
$ cd bsale-store

# Install dependencies
$ yarn install

Step 2. Set up a MySQL database

Set up a MySQL server either locally or any cloud provider.

Step 3. Set up environment variables

Copy the env.local.example file in this directory to .env.local (which will be ignored by Git):

cp .env.local.example .env.local

Set each variable on .env.local:

  • MYSQL_HOST - Your MySQL host URL.
  • MYSQL_DATABASE - The name of the MySQL database you want to use.
  • MYSQL_USERNAME - The name of the MySQL user with access to database.
  • MYSQL_PASSWORD - The passowrd of the MySQL user.
# Run the app
$ yarn dev

# Visit http://localhost:3000/

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

Acknowledgements

Contact

About

A BSale store demo for web development challengue.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •