A Content Management System built with AdonisJS 6, featuring user authentication, posts management, comments, and view tracking.
- User authentication (registration and login)
- User profiles with post statistics
- Blog post creation and management
- Post likes system
- Comments functionality
- View count tracking
- Modern UI with Tailwind CSS and Flowbite
- Node.js (Latest LTS version)
- npm or yarn package manager
- SQLite (default database)
-
Clone the repository
-
Install dependencies:
npm install
-
Copy the environment file:
cp .env.example .env
-
Initialize SQLite database:
The SQLite database file will be automatically created in the
tmpfolder when you run migrations. Make sure thetmpfolder exists:mkdir tmp node ace migration:run
The SQLite database file will be created at
tmp/db.sqlite3.
Start the development server:
npm run devThe server will start at http://localhost:3333
To build the application for production:
npm run buildRun the test suite:
npm run testapp/- Application source codecontrollers/- Request handlersmiddleware/- HTTP middlewaremodels/- Database modelsvalidators/- Form validation rules
config/- Configuration filesdatabase/- Database migrations and seedersresources/- Frontend assets and viewsstart/- Application bootstrap filestests/- Test suites
npm run dev- Start development server with hot reloadnpm run build- Build for productionnpm start- Start production servernpm run test- Run testsnpm run lint- Run linternpm run format- Format code with Prettier
- AdonisJS 6
- SQLite
- Edge Template Engine
- Tailwind CSS
- Flowbite
- Vite
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.



