This is the Web App for the Liferay Upgrade Tool. This project is built with Next.js and was bootstrapped with create-next-app
.
Install Dependencies
yarn
Run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
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
->localhost:3000
pages/projects/index.tsx
->localhost:3000/projects
pages/projects/[projectId]/index.tsx
->localhost:3000/projects/{dynamic_project_id}
pages/projects/[projectId]/tasks/index.tsx
->localhost:3000/projects/{dynamic_project_id}/tasks
pages/projects/[projectId]/tasks/[taskId].tsx
->localhost:3000/projects/{dynamic_project_id}/tasks/{dynamic_task_id}
pages/api
: Next.js has an api route that allows us to quickly create simple REST apis. Read more here.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
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.
The easiest way to deploy this app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.