GithubHelp home page GithubHelp logo

parkmate's Introduction

ParkMate

Welcome to ParkMate, the final project submission by:

  • Andrada, Chad Denard
  • Millan, Jeff Andre
  • Tejada, Ian Clyde

ParkMate simplifies your parking experience with a user-friendly app. Quickly locate available parking locations and reserve parking slots. Our app calculates payments based on the base rate and the hourly rate of its respective parking location. ParkMate provides a transaction history, making your payments convenient and organized.

Say goodbye to parking hassles โ€“ ParkMate is your reliable companion for stress-free parking

Getting Started

This is for developers wanting to reproduce the web app functionalities on their local machine. As much as possible, try to follow all the steps below in order.

Install dependencies

To begin, install the dependencies in the root folder!

npm install

Setting up the local database

After installing the dependencies, create a .env file in the root directory (It should be on the same level as the readme.md and package.json)

Inside the .env, paste the database URL which is structured as follows:

DATABASE_URL="postgresql://USER:PASSWORD@HOST:PORT/DATABASE"

Refer to the official Prisma ORM documentation for more info.

After the URL has been properly set up, run the Prisma migration script to migrate the tables and perform database seeding:

npx prisma migrate dev

Admin Credentials

All users that sign up will be REGULAR users. Only the developers have the privilege to grant ADMIN access. For requirement purposes, we have provided a free account with admin access.

username: parkmate-admin
password: FREEadmin-access

Start development server

After installing dependencies and setting up the database, run this command on the root directory:

npm run dev

Visit http://localhost:3000 to check it out! Log in with the Admin Account or sign up to check out regular user features.

Perform the tests using Jest

ParkMate uses Jest as its Testing Framework. Selenium is also used to automate some functionalities. For the API testing, ParkMate uses the next-test-api-route-handler (NTARH) testing library. Run this command on root directory to run the tests:

npm test

Sidenotes by the developers

Noticed in testing

Always use waitFor(() => {}) when trying to test a server component. Don't be like me! and always mock functions that has async ()!

Github desktop errors encountered

Fixed my issues related to husky

git config --unset core.hooksPath
/bin/bash: C:/Program Files/nodejs/npx: No such file or directory husky - pre-commit script failed (code 127)

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.