Skip to content

Commit

Permalink
chore(readme): make reademe comprehensive (#18)
Browse files Browse the repository at this point in the history
[finishes #16789174]
  • Loading branch information
Mcdavid95 authored Jul 24, 2019
1 parent 55f827d commit 670ddb5
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DATABASE_URL=postgres://dbUserName:[email protected]:dbPortNumber/dbName
SALT=1 // value should be a number
SECRET=secretkey // value should be a string
56 changes: 54 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,57 @@
WayFarer is a public bus transportation booking server.
[![Build Status](https://travis-ci.org/Mcdavid95/way-farer-api.svg?branch=develop)](https://travis-ci.org/Mcdavid95/way-farer-api) [![Coverage Status](https://coveralls.io/repos/github/Mcdavid95/way-farer-api/badge.svg?branch=develop)](https://coveralls.io/github/Mcdavid95/way-farer-api?branch=develop) [![Maintainability](https://api.codeclimate.com/v1/badges/21cccaac11bdfa626103/maintainability)](https://codeclimate.com/github/Mcdavid95/way-farer-api/maintainability)

#### API Documentation
- https://save-a-seat.herokuapp.com
### Description
```
Way-Farer is a public transport booking server that bridges the gap between commuters and transporter and ticketing.
This helps save time at ticketing stands and stress of long queues.
```

### Prerequisites
- [NodeJS](https://nodejs.org)
- [PostgreSQL](https://www.postgresql.org)

### Technologies
- [NodeJS](https://nodejs.org)
- [ExpressJS](https://npmjs.com/package/express)
- [PG](https://node-postgres.com)
- [PostgreSQL](https://www.postgresql.org)

### Features
- User authentication `signup and signin`
- Create Bus
- Create Trip
- View Trips
- Cancel Trip
- Create Booking
- Get Bookings
- Delete Bookings
- Save seat number
- View booking

### Install Project
- clone project on local machine
- navigate into local repository by running `cd way-farer-api`
- create db using `createdb way-farer`
- create a .env file in root directory and fill it up using example in .env.example
- run `npm install`
- run `npm start`

### Test
API test is written with mocha and supertest. Frontend tests is written with jest and enzyme.
- clone project on local machine
- navigate into local repository by running `cd way-farer-api`
- create db using `createdb way-farer`
- create a .env file in root directory and fill it up using example in .env.example
- run `npm install`
- run `npm run test`

### How to contribute
- The project is open for contribution. You can start by forking this project repo. If you have improvements you want to add, feel free to do so and create a PR against develop branch

### Documentation
The API documentation for this project can be found [here](https://save-a-seat.herokuapp.com)

### License
[MIT](https://github.com/Mcdavid95/way-farer-api/blob/develop/LICENSE)

0 comments on commit 670ddb5

Please sign in to comment.