Giter Site home page Giter Site logo

viserys's Introduction

bucket-list-app-api

Build Status

Coverage Status

Code Climate

Bucketlist API

This repo contains a bucketlist API using flask. The API enables users to register, login and access bucketlist and bucketlist item resources. The user can create, update, delete and retrieve bucketlists and bucketlist items.

Getting Started

Prerequisites

    pip install virtualenv
    pip install virtualenvwrapper
  • Add these lines to your shell startup file. (Refer to http://virtualenvwrapper.readthedocs.io/en/latest/install.html for instructions specific to your OS)

    • export WORKON_HOME=$HOME/.virtualenvs
    • export PROJECT_HOME=$HOME/Devel
    • source /usr/local/bin/virtualenvwrapper.sh
  • Create a virtual environment for the application by running

    workon bucket-venv

Installing

  • Create a directory for the app and cd into it
    mkdir bucketlist_api
    cd bucketlist_api

To clone the repo. In your terminal run the command:

    git clone https://github.com/mkiterian/bucket-list-app-api.git
  • cd into bucket-list-app-api directory
  • Run the command
pip install -r requirements.txt

This installs all the package dependencies in requirements.txt Create a database named bcktlst in postgres Run the commands

python manage.py db init migrate
python manage.py db init upgrade 

The api can then be run locally from terminal with the command

python run.py

Running the tests

To run the tests create a test database named db_for_api_tests In the terminal run the command:

coverage run --source=app -m py.test && coverage report

Usage

Documentation

viserys's People

Contributors

mkiterian avatar

Watchers

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