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.
Python3.5, Flask Micro-framework and uses Postgresql database
- 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
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 |
$ 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 a postgres database named myconnect
createdb -U postgres myconnect
$ export SECRET_KEY="to something secret" $ export APP_SETTINGS="config.DevelopmentConfig" $ export DATABASE_URL="postgresql://your-username:your-password@localhost/myconnect"
$ pip install -r requirements.txt
To run migrations
$ python manage.py db init $ python manage.py db migrate $ python manage.py db upgrade
$ 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/
To view the user interfaces click on the link below