Giter Site home page Giter Site logo

danielgomex / pizza Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edertaveira/phpreact-pizza-project

0.0 1.0 0.0 8.35 MB

An Online Demo Commerce with React + Laravel. Using Unit Tests and Migrations

Home Page: https://pizzaclub.herokuapp.com/

PHP 67.34% HTML 1.16% CSS 1.07% JavaScript 30.43%

pizza's Introduction

THE PIZZA TASK

It's a Project to manage pizza orders.

API (Backend)

URL: https://pizzaclub-api.herokuapp.com/

Frontend URL:

https://pizzaclub.herokuapp.com/

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

This project is separate in backend and frontend. After clone this you'll need to have installed:

  • Node
  • PHP >7.3
  • Composer
  • MySQL >5.7

Installing

Backend:

First of all, you need to setup the DATA BASE's data in your .env file, like:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=pizza
DB_USERNAME=root
DB_PASSWORD=
  • Make sure the database was created.

Run at terminal:

$ cd backend

$ composer install

$ php artisan migrate

$ php artisan db:seed

$ php artisan jwt:secret

$ php artisan storage:link

$ php artisan serve

Check your database. It should be something like: database

Frontend:

Run at terminal:

cd frontend

npm install or yarn

npm start or yarn start

You can add API_ROOT and STORAGE_ROOT in your frontend .env file to set the API URL and/or the image's folder.

Running the tests

Backend:

Run at terminal: php artisan test

backend

Frontend:

Built With

Authors

pizza's People

Contributors

edertaveiraturing avatar edertaveira avatar dependabot[bot] avatar

Watchers

James Cloos 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.