hapi-mvc
v2.0.0
Published
An MVC scaffold for you hapi.js projects
Downloads
30
Maintainers
Readme
hapi-mvc
This is a Hapi.js project setup script designed to initialize your project structure and install required dependencies.
Project Overview
hapi-mvc provides a basic project structure and setup for starting a new Hapi.js project following the Model-View-Controller (MVC) pattern.
Getting Started
To get started with hapi-mvc, follow these steps:
Installation: Clone the repository or download the source code to your local machine.
Setup: Run the setup script to initialize the project structure and install required dependencies:
npm install
Custom Setup: After installing dependencies, execute the custom setup script to further configure your project:
node install.js
Configuration: Review and modify the
.env
file to configure your environment variables as needed.Start the Server: Run the server using the provided script:
npm start
Explore: Explore the generated project structure and start building your Hapi.js application.
Project Structure
The project structure follows a typical MVC pattern with the following directories:
controllers
: Contains controller logic for handling requests.config
: Contains configuration files such as authentication strategies.routes
: Contains route definitions.models
: Contains data models or schemas.helpers
: Contains utility/helper functions.templates
: Contains template files for views (if applicable).test
: Contains test files for testing the application.
Contributing
Contributions to hapi-mvc are welcome! If you have suggestions, enhancements, or bug fixes, feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License.