Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 733 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 733 Bytes

##Steps for run the web-application:

  1. Clone this repository

git clone https://github.com/endorphin82/nextjs-shop.git

  1. Please create in root directory file .env with the contents below and replace words "user" and "password" on own.
API_URL="http://localhost:3000/api/graphql"
DATABASE_URL="mysql://user:passworw@localhost:3306/nextjs-shop"
DATABASE_USER="user"
DATABASE_PASSWORD="password"
DATABASE_NAME="nextjs-shop"
DATABASE_HOST="127.0.0.1"
DATABASE_PORT=3306
DATABASE_DIALECT="mysql"
  1. Install dependencies

npm i

  1. Create DB and Tables in MySql

npm run migration

  1. Run the web-application in development environment

npm run dev

By default run on http://localhost:3000/