Coder Social home page Coder Social logo

bemmio / waitress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andela/waitress

0.0 0.0 0.0 7.64 MB

A meal tracking service for managing an updated list of who got served

License: MIT License

JavaScript 6.78% Python 80.51% CSS 1.88% Makefile 0.04% HTML 10.79%

waitress's Introduction

Waitress

Travis build badge Coverage Status The meal tracking app of Andela Lagos

Waitress API

This repository houses the API endpoints for the waitress project. This project makes use of Python3.5 and above. For production it makes use of Python 3.7.6

Available Endpoints

It can be found here

Installation

Before you start please ensure you have Python and PostgreSQL installed

Python Setup

  1. Install Python3 from here or run the command brew install python3

  2. Install Pipenv with the command

    pip install pipenv
  3. Create a vritual environment with the command

    pipenv shell

Database Setup

  1. Install postgresql (Mac OS X)

Copy the following into your ~/.bash_profile or ~/.zshrc if you use zsh and you think your postgres isn't properly configured

export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin

App setup

  • Clone the repository
git clone [email protected]:waitress-andela/waitress.git
  • Pip install all requirements for the app

Before installing dependencies make sure your virtual env is activated, if not run pipenv shell to activate

pipenv install
  • Create a copy of the .env.example file and rename to .env.

  • Add the different variables as they are needed to get the project running.

  • Migrate the models to your database

pipenv run python manage.py makemigrations
pipenv run python manage.py migrate
  • Startup the server
pipenv run python manage.py runserver
  • Navigate to the api doc built with swagger

And you are all setup :)

Testing

To test the application and see the coverage

  1. Run coverage coverage run manage.py test to know how much of the app is covered by automated testing.
  2. View the report of the coverage on your terminal coverage report.
  3. Produce the html of coverage result coverage html.

waitress's People

Contributors

osule avatar bolajiolajide avatar afropolymath avatar abiodun0 avatar dependabot[bot] 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.