Skip to content

depadiernos/carpal-fe

 
 

Repository files navigation

Maintainability

Test Coverage

CarPal

You can find the deployed project at https://www.letscarpal.com/.

Contributors

Carl Redding Ruth Poliakon Steven Vandenburg Darren Angus
Dang Lu Lesley Banadzem Daniel Martin Dennis Padiernos


MIT React AWS code style: prettier

🚫 more info on using badges here

Project Overview

Trello Board

Product Canvas

Carpal

Carpals is a app that safely connects communities and commuters going in the same direction living in the same area to save money, reduce environmental & infrastructural impact by CarPalling.

Persona(s)

Karen has a 40-mile commute in Los Angeles, which equates to a 90-minute drive each way. Karen is burning through her money and beating up her car. She'd really love to carpool with someone who lives near her, but she doesn't know how or where or how to meet them.

Someone who cares about traffic

Someone who does not have reliable transport and need to carpool.

Someone who cares about the environment.

Problem

Karen is not making enough to finance her commute. The wear and tear on her car and the rising cost of gas is bankrupting her.

  • Problem 1 - People spend money on their cars and gas in long and rough stop and go commutes. All the while wear and tear adds up on their cars.
  • Problem 2 - Environmental impact of cars on the road
  • Problem 3 - Lack of current transportation/car
  • Problem 4 - Person concerned with impact on aging US infrastructure
  • Problem 5 - Stressed out by commute
  • Problem 6- Wants to Meet People
  • Problem 7- Karen scored a DUI and still needs to get to work

Mission

To safely connect communities and commuters going in the same direction living in the same area to save money, reduce environmental & infrastructural impact by CarPalling.

Key Features

Basic Features

Login/Signup

  • Signup and Login
  • Signup and Login using Google Account [via PassportJS]
  • Signout (Currently Unavailable)

User profile

  • Create and Update Profile
  • Upload Profile Picture
  • Save Favorite Locations (Such as Home and Work) [Via Mapbox]

Ride request (Currently Unavailable)

  • Request a Ride
  • Accept or Reject Ride Requests
  • Text Alerts to Riders [via Twilio]
  • Driver Arrival ETA

Advanced Features (Currently Unavailable)

  • Payment System [via Stripe]
  • Driver/passenger ratings
  • Friends list
  • Chat
  • Mobile native app
  • Gamification (user stats/point system)
  • Driver real time location
  • Ad hoc ride requests
  • Safety features (user verification)

Tech Stack

Front end built using:

React

  • React was choosen due to its ability to setup an SPA efficiently and in a ascalable manner.

🚫List the rest of the front end features and libraries in the same format as the framework above.

Front end deployed to AWS https://www.letscarpal.com/

Back end built using:

Node with Express

  • Node and Express enable the setup of servers and DBs that support the Carpals app
  • Node and Express also allow the team to utilize Javascript across the stack

Postgres

  • Postgres enable the carpals app to build a persistent and scalable SQL DB

🚫 List the rest of the back end end features and libraries in the same format as the framework above

APIs

Authentication API

The User API enables interaction with Carpals user base

Method Endpoint Access Control Description
POST /auth/register all users Allows user to create an account
POST /auth/login all users Allows user to authenticate and log into account
GET /auth all users Allows for user retrieval from a token
PUT /auth/update owner Allows user to update their account
DELETE /auth/delete owner Allows user to delete their account

Location API

The Location API enables CRUD actions related to user's favorite locations. Favorite locations are used to determine potential routes that Carpal Drivers are driving.

Method Endpoint Access Control Description
GET /locations all users Returns all locations entered by all users
GET /locations/favorites owner Returns favorirted locations for a user
GET /locations/:id owner Returns a single location entered by user
POST /locations owner Allows user to enter in a new location
PUT /locations/:id owner Allows user to enter to update a location
DELETE /locations/:id owner Delete a location

2️⃣ Payment API here

🚫Replace text below with a description of the API

This is the way you take out your flustrations. Get away from those little Christmas tree things we used to make in school. Isn't it fantastic that you can change your mind and create all these happy things? Everything's not great in life, but we can still find beauty in it.

3️⃣ Misc API here

🚫Replace text below with a description of the API

When you do it your way you can go anywhere you choose. Let your heart take you to wherever you want to be. If I paint something, I don't want to have to explain what it is. A tree needs to be your friend if you're going to paint him. That's a son of a gun of a cloud. Even the worst thing we can do here is good.

3️⃣ Misc API here

🚫Replace text below with a description of the API

Volunteering your time; it pays you and your whole community fantastic dividends. Maybe there's a happy little waterfall happening over here. You can spend all day playing with mountains. We don't have to be committed. We are just playing here. You have freedom here. The only guide is your heart. It's cold, but it's beautiful.

3️⃣ Environment Variables

In order for the app to function correctly, the user must set up their own environment variables. There should be a .env file containing the following:

*  NODE_ENV - this is the environment in which the application is running.

5️⃣ Content Licenses

🚫For all content - images, icons, etc, use this table to document permission of use. Remove the two placeholders and add you content to this table

Image Filename Source / Creator License
Rectangle 8.png TBD Creative Commons

4️⃣ Testing

For Front-end testing we're using React Testing Library(RTL) to perform testing of our components. RTL comes packed with a suite of tests.

We're also using code-climate (run as part of our CI/CD process) to determine test coverage and code maintainability.

Yup fhas been setup or form validation

4️⃣ Installation Instructions

🚫explain how to install the required dependencies to get this project up and running with yarn and NPM

Use 'npm install' to install all necessary dependencies

Other Scripts

🚫replace these examples with your own

* build - creates a build of the application
* start - starts the production server after a build is created; if used locally, creates a local instance of a server at localhost:3000
* eject - used to modify CRA dependencies
*coverage - runs a test coverage report that is displayed t the top of this readme
* test - runs tests in **tests** directory \* eject - copy the configuration files and dependencies into the project so you have full control over them

Contributing

If you're interested in contributing to this project, please email us at [email protected] or DMing us on Twitter @carpaling

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct. Please follow it in all your interactions with the project.

Issue/Bug Request

If you are having an issue with the existing project code, please submit a bug report under the following guidelines:

  • Check first to see if your issue has already been reported.
  • Check to see if the issue has recently been fixed by attempting to reproduce the issue using the latest master branch in the repository.
  • Create a live example of the problem.
  • Submit a detailed bug report including your environment & browser, steps to reproduce the issue, actual and expected outcomes, where you believe the issue is originating from, and any potential solutions you have considered.

Feature Requests

We would love to hear from you about new features which would improve this app and further the aims of our project. Please provide as much detail and information as possible to show us why you think your new feature should be implemented.

Pull Requests

If you have developed a patch, bug fix, or new feature that would improve this app, please submit a pull request. It is best to communicate your ideas with the developers first before investing a great deal of time into a pull request to ensure that it will mesh smoothly with the project.

Remember that this project is licensed under the MIT license, and by submitting a pull request, you agree that your work will be, too.

Pull Request Guidelines

  • Ensure any install or build dependencies are removed before the end of the layer when doing a build.
  • Update the README.md with details of changes to the interface, including new plist variables, exposed ports, useful file locations and container parameters.
  • Ensure that your code conforms to our existing code conventions and test coverage.
  • Include the relevant issue number, if applicable.
  • You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you.

Attribution

These contribution guidelines have been adapted from this good-Contributing.md-template.

Documentation

See Backend Documentation

Maintainability

Test Coverage1

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.2%
  • CSS 15.3%
  • HTML 1.5%