kibare / prolearn-frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:8080 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:8080/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Foldering Rule

  1. Folder "src" terbagi 4, components, pages, services, sama styles

  2. Components isinya component2 kecil yang KEMUNGKINAN reusable, misal button, filter. Dibagi juga buat per page, misal components/admin-course, components/user-course, dll.

  3. Pages isinya page ato component yang ada di aplikasi. Bedanya kalo component dalem folder components itu reusable, kalo dalem pages itu buat yg spesifik buat page itu. Buat foldering dalem page ini bakal ngikutin routing sesuai next. Misal ada pages/user/courses bakal bisa diakses di localhost/user/courses

  4. Services isinya service2 yang dipake buat ngambil data dari API pake axios

  5. Styles isinya globalCSS. Kalo mau make font, import dari google dan masukin situ

  6. TAPI KARENA KITA PAKE TAILWIND KEMUNGKINAN PAKE CSS INLINE, jadi gaakan terlalu banyak yang ada di folder styles

About


Languages

Language:TypeScript 87.0%Language:CSS 12.3%Language:JavaScript 0.7%Language:Dockerfile 0.0%Language:HTML 0.0%