The fastest and easiest way to access the IKGPTU exam portal.
NOTE: This project is not affiliated with I.K. Gujral Punjab Technical University nor do we host or serve any sensitive data (student records) on (or from) our server.
- Next.js
10.x
- React
17.x
- Tailwind CSS
2.x
- Node.js
14.x
- Install Node.js dependencies:
yarn
- Create a new file called
.env.local
and add the following:
JWT_SECRET=your-secret-key-here
NEXT_PUBLIC_API_BASE_URL=/api/v1
NEXT_PUBLIC_PROXY_URL=https://example.com
NEXT_PUBLIC_SITE_URL=https://example.vercel.app
SOURCE_API_BASE_URL=https://api.example.com/api
SOURCE_API_ORIGIN_URL=https://example.com
Replace the values according to your environment.
NOTE: It is possible to override all the environment variables which are specified in the
.env
file.
Start the local development server
yarn dev
Open http://localhost:3000 with your browser to see the result.
NOTE: This project is hosted on Vercel.
- Put this repository on GitHub or any other supported Git provider.
- Create a new project on Vercel.
- Connect the repository to the project.
- Add the following environment variables:
Variable | Description |
---|---|
JWT_SECRET |
JSON Web Token secret key to encrypt the user credentials |
NEXT_PUBLIC_API_BASE_URL |
Base URL to which the endpoint paths are appended |
NEXT_PUBLIC_GA_TRACKING_ID |
Google Analytics tracking ID (optional) |
NEXT_PUBLIC_PROXY_URL |
Proxy server to enable CORS |
NEXT_PUBLIC_SITE_URL |
Domain of the project (e.g. https://example.vercel.app) |
SOURCE_API_BASE_URL |
Base URL to which the endpoint paths are appended |
SOURCE_API_ORIGIN_URL |
The Origin request header indicates where a request originates from |