Giter Site home page Giter Site logo

openpizza's Introduction

OpenPizza

demo demo demo

About OpenPizza

OpenPizza was born as a Free and Open Source solution to manage Orders in Pizzerias during COVID-19.

The project tries to follow all the Best Practices to facilitate their development and maintenance.

Built with

  • Laravel 7 - The web framework
  • Laradock - Laradock is a full PHP development environment for Docker.
  • Bootstrap 4 - The front-end open source toolkit
  • SB Admin 2 - The Bootstrap 4 admin theme
  • Bootstrap-select - jQuery plugin with intuitive multiselection
  • jQuery - jQuery is a JavaScript library
  • Chart.js - Simple yet flexible JavaScript charting

Get Started

ATTENTION!

  • The starting directory is the root of the project
  • It's assumed that Docker is already installed on the machine

To try the application just follow the steps below:

  1. Change the extension of the .env file
mv .env.example .env
  1. Generate the key
php artisan key:generate
  1. Enter the credentials of the db
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=pizzeriadocker
DB_USERNAME=admin
DB_PASSWORD=password
  1. Navigate to the "laradock" folder
cd laradock
  1. Start the container
docker-compose up -d nginx mysql
  1. Navigate to MySQL
docker exec -it laradock_mysql_1 bash
  1. Enter the terminal
mysql -uroot -proot
  1. Create the admin user and assign them privileges
CREATE USER 'admin'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;
CREATE USER 'admin'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION;
  1. Create the database
CREATE DATABASE IF NOT EXISTS `pizzeriadocker` COLLATE 'utf8_general_ci';
GRANT ALL ON `pizzeriadocker`.* TO 'admin'@'%';
FLUSH PRIVILEGES;
  1. Enter the Workspace
docker exec -it laradock_workspace_1 bash
  1. Load the preset demo data
php artisan db:seed
  1. At this point, just go to: http://127.0.0.1/ to access the demo. The credentials to access the Dashboard as Administrator and to access the User side are the following:
Admin = email: "[email protected]" pass: "password"
User = email: "[email protected]" pass: "password"

openpizza's People

Contributors

alexcalabrese avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.