Skip to content

A platform bringing businesses and individuals together

Notifications You must be signed in to change notification settings

peterwade153/weconnect

Repository files navigation

Build Status Coverage Status Maintainability

WeConnect-API


Description

WeConnect provides a platform that brings businesses and individuals together. This platform creates awareness for businesses and gives the users the ability to write reviews about the businesses they have interacted with.

Built with

Python3.5, Flask Micro-framework and uses Postgresql database

Functions

  • User signup
  • User login
  • User logout
  • User reset-password
  • Register a business
  • Update a business by user who registered it
  • View registered businesses
  • View a business by id
  • Delete a business by a user that registered it
  • Review a business
  • View reviews for a registered business

End points

Request Endpoints Functionality
POST api/v2/auth/register Register user
POST api/v2/auth/login Login user
POST api/v2/auth/logout Logout user
POST api/v2/auth/reset-password Reset-password
POST api/v2/businesses Register business
GET api/v2/businesses Get registered businesses
PUT api/v2/businesses/id Update registered business
GET api/v2/businesses/id Get a business
DELETE api/v2/businesses/id Delete a business
POST api/v2/businesses/id/reviews Review a business
GET api/v2/businesses/id/reviews Get reviews for a business

Installation

Create a virtual enviroment and activate it

$ python3 -m venv weconnect

Change directory to weconnect and clone the repository to the folder

https://github.com/peterwade153/weconnect.git

To activate the environment

$ source bin/activate

Create database

Create a postgres database named myconnect

createdb -U postgres myconnect

Environment variables

$ export SECRET_KEY="to something secret"
$ export APP_SETTINGS="config.DevelopmentConfig"
$ export DATABASE_URL="postgresql://your-username:your-password@localhost/myconnect"

Install requirements

$ pip install -r requirements.txt

To run migrations

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

To run application

$ python run.py

To test the api using postman(chrome extension) with the url below

https://weconect-api.herokuapp.com/

To view the api documentation use the link below

https://peterweconnect.docs.apiary.io/


User interfaces

To view the user interfaces click on the link below

https://peterwade153.github.io/

About

A platform bringing businesses and individuals together

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published