This is a core of website with content management system.
Getting Started
- Clone this repo.
git clone https://github.com/freshgalangmandiri/web-cms-fullstack
- Install dependencies
cd web-cms-fullstack
npm install
- Run Project
npm run dev
Project Structure
In general, this is the folder structure of the project.
src
└── app
│ ├── (Admin)
│ │ ├── dashboard
│ │ │ ├── [...slug]
│ │ │ ├── categories/ ...
│ │ │ ├── gallery / ...
│ │ │ ├── posts / ...
│ │ │ ├── tags / ...
│ │ │ ├── users / ...
│ │ │ ├── users-login / ...
│ │ │ ├── dashboard.module.css
│ │ │ ├── layout.js
│ │ │ ├── not-found.js
│ │ │ └── page.js
│ │ ├── login / ...
│ │ ├── unauthorize / ...
│ ├── (Web)
│ │ └── post / ...
│ ├── api / ...
│ ├── forbidden / ...
│ ├── library / ....
│ ├── favicon.ico
│ ├── global-error.js
│ ├── globals.css
│ ├── layout.js
│ ├── manifest.js
│ ├── page.js
│ ├── page.module.css
│ ├── robots.js
│ ├── sitemap.js
├── components
│ ├── administrator / ...
│ ├── editor / ...
│ ├── google / ...
│ ├── ui / ...
│ └── web / ...
├── config / ...
├── data / ...
├── hooks / ...
├── middlewares / ...
├── models / ...
├── providers / ...
├── utils
│ ├── clients.js
│ ├── db.config.js
│ └── middlewarewrap.js
├── server.js
├── .env
├── .gitignore
└── ...
Collaboration workflow rules
Standard Types (prefixes):
feature/→ for new featuresfix/→ for bug fixeshotfix/→ for urgent production fixeschore/→ for maintenance (deps, configs, CI/CD, etc.)docs/→ for documentation
Follow the Conventional Commits style Types:
feat→ new featurefix→ bug fixdocs→ documentation onlystyle→ code style (formatting, no logic change)refactor→ code restructuring without behavior changetest→ adding or fixing testschore→ build process, tooling, configs
Examples:
feat(auth): add JWT-based loginfix(api): handle null values in user responsedocs(readme): update setup instructionsrefactor(db): optimize query for invoiceschore(ci): add lint step to GitHub Actions
Description
Languages
JavaScript
87.4%
CSS
12.6%