Mentions légales du service

Skip to content
Snippets Groups Projects
Verified Commit afefcff5 authored by Philippe Virouleau's avatar Philippe Virouleau
Browse files

Prod setup

parent 40992325
No related branches found
No related tags found
No related merge requests found
NEXT_PUBLIC_GL_CLIENT_ID=76df8d6ead161d6eb9b04d0bfeaca80ac4ad21b7d7bb69cf07b3ab17e17d5514 NEXT_PUBLIC_GL_CLIENT_ID=76df8d6ead161d6eb9b04d0bfeaca80ac4ad21b7d7bb69cf07b3ab17e17d5514
NEXT_PUBLIC_GL_REDIRECT_URI=https://grid5000.gitlabpages.inria.fr/environments-recipes NEXT_PUBLIC_GL_REDIRECT_URI=https://grid5000.gitlabpages.inria.fr/pipeline-creation-assistant
NEXT_PUBLIC_GL_URL=https://gitlab.inria.fr NEXT_PUBLIC_GL_URL=https://gitlab.inria.fr
NEXT_PUBLIC_API_ROOT=https://public-api.grid5000.fr/stable NEXT_PUBLIC_API_ROOT=https://public-api.grid5000.fr/stable
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
## Getting Started ## Running the server
First, run the development server:
```bash ```bash
npm install
npm run dev npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
``` ```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. Open [http://localhost:3211](http://localhost:3211) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. ## Authentication
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! This application leverages OpenConnect through Gitlab's authentication provider to authenticate the user and get a token to perform actions on their behalf.
## Deploy on Vercel It **needs** a registered gitlab application to work.
Currently it's been created by [@viroulea](https://gitlab.inria.fr/viroulea), but if needed one can create a new application with the following steps:
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - go to your settings/applications: https://gitlab.inria.fr/-/user_settings/applications
- "add new application"
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. - pick a name
- to have both a development and a production setup, set the redirect URIs to:
```
http://localhost:3211
https://grid5000.gitlabpages.inria.fr/pipeline-creation-assistant
```
- **uncheck** the "confidential" checkbox since this application **is** a single page app
- check the `api` and `openid` scopes
- save application
- configure the `.env.production` with the appropriate client id
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment