✨ Preview • pizza.saizaax.dev
React.js
TypeScript
SCSS
Axios
Lodash
Next.js
MySQL
Prisma
-
Download & Install Node.js
-
Clone this repository
git clone https://github.com/saizaax/next-pizza
-
Open terminal and navigate to repository directory
cd next-pizza
-
Add
.env
file to root directory# Client-Side API URL NEXT_PUBLIC_API_URL='http://localhost:3000/api' # Database URL DATABASE_URL='mysql://database/next-pizza'
-
Install npm dependencies
npm i
-
Generate Prisma Client (make sure your database is up)
npx prisma generate
-
Run with npm
npm run dev
-
Open in web-browser
http://localhost:3000/
-
Download & Install Docker / Docker Desktop
-
Clone this repository
git clone https://github.com/saizaax/next-pizza
-
Open terminal and navigate to repository directory
cd next-pizza
-
Add
.env
file to root directory / Editdocker-compose.yml
environment variables# Client-Side API URL NEXT_PUBLIC_API_URL='http://localhost:3000/api' # Database URL DATABASE_URL='mysql://database/next-pizza'
-
Run docker-compose
docker-compose up --build --detach
-
Open in web-browser
http://localhost:3000/
2022 • Korolkov Alexander • @saizaax • saizaax.off@gmail.com