Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pilner/ParaPo

Repository files navigation

ParaPo

A web-based navigation application designed for Filipino commuters. A transit routing map software made using:

Frontend Backend
Next.js
React NextAuth.js
TailwindCSS Prisma
TanStack Query

Note: This is a TypeScript application

How to use

Note: Make sure you have Node.js installed. To check, run node -v in your terminal

  1. First clone this git repository to your local device
git clone https://github.com/Pilner/ParaPo
cd ParaPo
  1. Download all the dependencies and packages needed in this repository
npm install
  1. Create and supply .env file with environment variables
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=<replace_with_mapbox_api_token>
DATABASE_URL=<replace_with_database_url>
NEXTAUTH_SECRET=<replace_with_your_secret>
NEXTAUTH_URL=<replace_with_your_url>
  1. Migrate the Database using Prisma
npx prisma migrate dev
  1. Seed the Database with pre-defined data (optional)
npm run prisma-seed
  1. Run the process
npm run dev
  1. View the website on browser at
http://localhost:3000
  1. If you need to reset the database
npx prisma migrate reset

Routes

  • / - is the Home Page
  • /catalog - is the Catalog Page
  • /catalog/route/[id] - is the Catalog Route Map Page
  • /map - is the Route Map Page
  • /admin - is the Admin Dashboard Page
  • /admin/map/add/route - is the Creation of Route Page
  • /admin/map/edit/route/[route_id] - is the Editing of Route Page
  • /** - is the 404 Error Page

API Routes

Get

  • User
    • /api/get/user
    • /api/get/user/[user_id]
    • /api/get/user/search/[keyword]
  • Route
    • /api/get/route
    • /api/get/route/[route_id]
    • /api/get/route/search/[keyword]
  • Location
    • /api/get/location
    • /api/get/location/[route_id]
    • /api/get/location/search/[keyword]

Put

  • User
    • /api/update/user/[user_id]
  • Route
    • /api/update/route/[route_id]
  • Location
    • /api/update/location/[location_id]

Post

  • User
    • /api/post/user
  • Route
    • /api/post/route

Delete

  • User
    • /api/delete/user/[user_id]
  • Route
    • /api/delete/route/[route_id]

Admin Dashboard

  • Default username and password:
    • Username: admin
    • Password: password

Collaborators

  • Cerna, Raymond Miguel
  • Enrico, Carl Andrei E.
  • Mabaet, Dave
  • Mesina, Venice Fae R.
  • Pabroquez, Jethro S.
  • Victuelles, Fabian Railey A.

About

Software Engineering Course Software

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages