Giter Site home page Giter Site logo

robertodebarba / pizzeria-management-angular Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 6.0 1.72 MB

Pizzeria management in Angular 2 🍕

TypeScript 39.92% JavaScript 1.44% HTML 15.72% CSS 42.93%
node express expressjs typescript angular2 angular coreui pizzeria management rest-api

pizzeria-management-angular's Introduction

Pizzeria Management System in Angular 2 and NodeJS

This a sample pizzeria management system made with Node (ExpressJs + TypeScript) and Angular 2 (with CoreUI).

Main features

  • User authentication
  • Clients CRUD
  • Products CRUD
  • Orders CRUD

login main order

Prerequisites

How to run

Database

  1. Create database schema running the file backend/database.sql

Backend

  1. cd backend
  2. npm install
  3. npm install -g gulp
  4. npm run build
  5. npm start
  6. npm run watch for watch source changes

Runs on localhost:3000

Frontend

  1. cd frontend
  2. npm install
  3. npm install -g @angular/cli
  4. npm start

Runs on localhost:4200

Default system user/password: admin1/senha

Authors

API documentation

Client

name:string,
cpf:number,
phone1:number,
phone2:number,
address:{
    place:string,
    city:string,
    zipCode:number,
    number:number,
    neighborhood:string,
    info:string
}

Product

{
    id: number,
    name: string,
    price: number
}

Order

{
    id: number,
    date: string,
    status: string,
    client: Client,
    products: {
        product: Product,
        amount: number
    }[]
}

GET /api/client

Response body:

Client[]

GET /api/client/:cpf

Response body:

Client

POST /api/client

Request body:

Client

GET /api/product

Response body:

Product[]

GET /api/product/:id

Response body:

Product

DELETE /api/product/:id

POST /api/product

Request body:

Product

GET /api/order

Response body:

Order[]

GET /api/order/:id

Response body:

Order

POST /api/order

POST /api/order/complete/:id

POST /api/order/cancel/:id

Request body:

{
    id: number,
    date: string,
    status: string,
    client: number[],
    products: {
        id: number,
        amount: number
    }[]

}

pizzeria-management-angular's People

Contributors

matheushoeltgebaum avatar matheuspereirakrumm avatar robertodebarba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pizzeria-management-angular's Issues

Implementar tela de login [front]

  • Montar tela.
  • Bloquear acesso aos recursos, quando o usuário não estiver logado.
  • Chamar serviço de login que será implementado na issue #6 .

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.