Giter VIP home page Giter VIP logo

butter's Introduction

butter

Clone the repo to your local machine using the command git clone https://github.com/kenneth051/butter.git

Setup using docker

download and install docker on your computer,

in the project root folder, run the command docker-compose build to build all images

run the command docker-compose up to start the containers

to stop the containers run the command docker-compose down

Setup without docker

after clonning the repo

create a .env file in root of the project and add a database url example is in env_sample file.

install pipenv by running the command pip3 install pipenv to create ana enviroment

in the pipenv enviroment install the requirements by running the command pip install -r requirements.txt

make sure you have postgres installed.

make migrations by running the command python manage.py migrate

start the app by running the command python manage.py runserver

Using the app.

on postman go the endpoint http://127.0.0.1:8000/butter/agreement/ to see the user agreement contract to be signed.

open another postman tab then go to the endpoint http://127.0.0.1:8000/butter/sign_agreement/ to sign the agreement by passing in the various data feilds with there data

{
  "first_name":",
  "last_name":"",
  "email":"",
  "password":"",
  "street":"",
  "post_code":" "
}

by sending this data, you agree to the terms of the product/ company.

after go to the endpoint http://127.0.0.1:8000/butter/agreement/.

This time pass in the token you have recieved after signing the agreement.pass this token under the Headers' tab on postman using a key Authorization. send the request, then you will see the html agreement you have signed displayed in html.

make sure the token is correct and you paste it in fully without any other word appended to it.

To get all signed agreements go to the endpoint http://127.0.0.1:8000/butter/agreements/

To run the sample tests

Run the command python3 manage.py test

butter's People

Contributors

kenneth051 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.