This is the Web App for the Liferay Upgrade Tool. This project is built with Next.js and was bootstrapped with create-next-app
. The API is provided by Docker on the backend side at port 9000
.
Install Dependencies
yarn
Run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
Lint your code:
yarn lint
Format your code:
yarn format
components/
: Contains React components that are re-usable across pages.pages/
: Next.js has a file-system based router and each page is generated from this directory. For example:pages/index.tsx
-> Redirects tolocalhost:3000/tasks
, rendering pages/tasks/index.tsx`pages/tasks/index.tsx
->localhost:3000/tasks/
pages/tasks/[taskId].tsx
->localhost:3000/tasks/{dynamic_task_id}
public/
: Static file serving. Any file in this directory will be made available on thelocalhost:3000/public/*
route.styles/
: Location of scss files.main.scss
is the entry point to our scss.utils/
: Re-usable functionsconstants/
: Place to put any constants used in the App.
Building the docker image
docker build . -t lugbot-app
Running the docker image
docker run -p 3000:3000 lugbot-app
In order to get the data this app requires to function from http://localhost:9000
. To get access to that, you will need to have a Docker image provided by the backend.
Here are the steps to get that image working:
- Clone https://github.com/LiferayCloud/service-upgrade-bot
- Go to the new
service-upgrade-bot
folder and run./buildLugbot.sh
- This will give you access to the
lugbot/lugbot:latest
image
To see the representation of the API you should go to this Confluence document.
To learn about our initial efforts to make this app, check out this knowledge transfer Confluence doc.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.