GithubHelp home page GithubHelp logo

timzprof / book-a-meal Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 11.0 17.74 MB

Meal Booking Ecommerce Application

Home Page: http://book-a-meal-rest-api.herokuapp.com/

HTML 19.71% CSS 11.60% JavaScript 68.66% Shell 0.03%
ecommerce-platform reactjs nodejs expressjs full-stack javascript meals

book-a-meal's Introduction

Book A Meal

Book A Meal is an Ecommerce web app , specifically targetted towards bringing caterers and users together. It is built on the PERN(PostgreSQL,Express,React,Node) Stack.

Build Status Coverage Status Maintainability Test Coverage

Getting Started

Clone the Repo.

git clone https://github.com/timzprof/book-a-meal.git

Prerequisites

The following tools will be needed to run this application successfully:

  • Node v10.15.0 or above
  • Npm v6.4 or above

API Endpoints

  • GET api/v1/meals/ Caterers can get all meals options they uploaded
  • POST api/v1/meals/ Catereres can add meal options linked to their account
  • PUT api/vi/meals/:mealId Caterers can update their meal options
  • DELETE api/v1/meals/:mealId Caterers can delete their meal options
  • GET api/v1/menu/ Caterers and Users can Get the menu for the day
  • POST api/v1/menu/ Caterers can Set a menu for the day
  • GET api/v1/orders Get All Orders
  • POST api/v1/orders Users can add Meals to Orders
  • PUT api/v1/orders/:orderId Users can modify their orders (Increment/Decrement/Delete)
  • POST api/v1/orders/checkout Users can checkout their orders

Installation

On your Local Machine

  • Pull the develop branch off this repository
  • Create a PostgreSQL Database for the App
  • Create a .env file and modify the Database Url and Add a Jwt_secret
  • Run npm install to install all dependencies
  • Run npm run dev to start the app (development)
  • Access endpoints on localhost:7000
  • To Access API Docs navigate to localhost:7000/api-docs
  • Cd into the client folder , this contains the React App for this project
  • Run npm install to install all dependencies
  • Cd out of the client folder and run npm run client to start the React App Dev Server
  • Access the React App at localhost:3000

Running the tests

Run npm test in the terminal for the cloned folder.

Built With

Authors

  • Timilehin Olumofin

book-a-meal's People

Contributors

timzprof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

book-a-meal's Issues

Error Running Project

I'm having issues getting the project to run when I enter npm start in the console. The error message is Error: Cannot find module 'file-path/book-a-meal-1-develop/build/index.js' , so my guess is the build folder was not pushed to this remote repository.

I'm fairly new to node.js, so if there's any additional thing I need to setup prior to running the project, please let me know.

Thanks.

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.