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
Note: Make sure you have Node.js installed. To check, run node -v in your terminal
- First clone this git repository to your local device
git clone https://github.com/Pilner/ParaPo
cd ParaPo
- Download all the dependencies and packages needed in this repository
npm install
- Create and supply
.envfile 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>- Migrate the Database using Prisma
npx prisma migrate dev- Seed the Database with pre-defined data (optional)
npm run prisma-seed- Run the process
npm run dev- View the website on browser at
http://localhost:3000
- If you need to reset the database
npx prisma migrate reset/- 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
- 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]
- User
/api/update/user/[user_id]
- Route
/api/update/route/[route_id]
- Location
/api/update/location/[location_id]
- User
/api/post/user
- Route
/api/post/route
- User
/api/delete/user/[user_id]
- Route
/api/delete/route/[route_id]
- Default username and password:
- Username:
admin - Password:
password
- Username:
- Cerna, Raymond Miguel
- Enrico, Carl Andrei E.
- Mabaet, Dave
- Mesina, Venice Fae R.
- Pabroquez, Jethro S.
- Victuelles, Fabian Railey A.