fs-express-handlebars
The Full-Stack Node.js Express with Handlebars Views Generator (fs-express-handlebars
) is an official generator in Belfy that enables developers to quickly scaffold full-stack CRUD applications using Node.js and Express framework with Handlebars views.
Usage
To use the fs-express-handlebars
generator, follow the steps below:
- Ensure you have Belfy installed globally by running:
npm install -g @belfy/cli
- Create a folder for your project configuration and place your data definitions and customization files inside it.
- Run the Belfy CLI with the create command, passing the path to your project configuration folder:
belfy create
- Answer the prompts based on your preferences. The generator will use default configurations for now.
- Once the generator completes, navigate to the generated project directory:
cd your-project-directory
- Start the Docker containers for the database:
docker-compose up -d db # Start the database container
- After at least 30 seconds, start the application container:
docker-compose up -d app # Start the application container
- Access your application in your browser at http://localhost:3000.