Skip to content

Commit 9659cf1

Browse files
committed
add instructions to readme
1 parent b83db1e commit 9659cf1

File tree

1 file changed

+22
-28
lines changed

1 file changed

+22
-28
lines changed

Diff for: README.md

+22-28
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,34 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1+
# Dockerizer
22

3-
## Getting Started
3+
> Provided by [Easypanel](https://easypanel.io)
44
5-
First, run the development server:
5+
## Codebase Structure
66

7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
15-
```
16-
17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18-
19-
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
7+
Each Dockerizer has its own folder: `src/dockerizers/[name]`
208

21-
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
22-
23-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
9+
```
10+
index.ts # dockerizer schema & generation logic
2411
25-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
12+
files/ # files, templates, config files
13+
files.json # compiled from the files folder
2614
27-
## Learn More
15+
tests/
16+
[test-name]/
17+
code/ # test application codebase
18+
input.json # test input for the dockerizer
19+
```
2820

29-
To learn more about Next.js, take a look at the following resources:
21+
You can get started by copying the `sample` dockerizer.
3022

31-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
32-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
23+
On the UI, there is a one or more pages for each Dockerizer. Those live in `src/pages/[name]`
3324

34-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
25+
## Development
3526

36-
## Deploy on Vercel
27+
Run `npm run dev` to start the Next.js application.
3728

38-
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.
29+
## Scripts
3930

40-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
31+
- `npm run compile-files` - compiles all the files from a dockerizer to `files.json`
32+
- `npm run compile-files-watch` - watches for changes and run `compile-files` automatically
33+
- `npm run compile-tests` - generates the `dockerizer` folder for each test app based on `input.json`
34+
- `npm run hadolint` - lints all Dockerfiles (make sure you run `compile-tests` before this)

0 commit comments

Comments
 (0)