create-ndcf-app v0.1.1
create-ndcf-app
Create a Next.js 14 boilerplate app quickly and easily with our CLI tool, which includes Docker settings for easy containerization. This tool prepares a project for deployment to SAP BTP Cloud Foundry, including the'shadcn/ui' component library and 'tailwindcss' for optimized style. It supports JavaScript and TypeScript, making it suitable for a wide range of development needs. This full CLI solution simplifies the setup process and allows you to focus on building your application. Start your project swiftly and deploy confidently.
Features
- Generates a Next.js 14 app with TypeScript/JavaScript
- Includes TailwindCSS configuration
- Sets up shadcn/ui components
- Optionally includes Docker configuration
- Prepared for deployment to SAP BTP Cloud Foundry
Usage
Follow these steps to create a new Next.js 14 project:
npx create-ndcf-app@latestor
yarn create ndcf-appor
pnpm create ndcf-app@latestor
bunx create-ndcf-app@latestInteractive Mode
The CLI will guide you through a series of questions to set up your project. Answer the prompts to customize your project configuration.
- What will your project be called?
- Will you be using TypeScript or JavaScript?
- TypeScript
- JavaScript
- Would you like to use App Router or Pages Router?
- App Router
- Pages Router
- Would you like to use ESLint? (Y/n)
- Would you like to use Prettier? (Y/n)
- Would you like to use --turbo flag? (Y/n)
- Would you like to use a 'src' directory? (y/N)
- Do you want to include Docker configuration? (Y/n)
- Initialize a new git repository? (Y/n)
- Which Container Registry would you like to use?
- DockerHub
- GitHub Container Registry
- What is your GitHub Container Registry username?
- What is your DockerHub username?
- Would you like us to run 'npm install' for you? (Y/n)
Navigate to Your Project Directory
Once the project is generated, navigate to your new project directory:
cd <your-project-name>Install Dependencies
Install the project dependencies:
npm installor
yarn installor
pnpm installor
bun installStart the Development Server
npm run devor
yarn devor
pnpm devor
bun devDeploy to Cloud Foundry
If you chose to include Docker configuration, it should generate a Dockerfile and .dockerignore file in the project directory. Now login accout to your Cloud Foundry account and run the following command to push the app to Cloud Foundry:
First make sure you have the Cloud Foundry CLI installed. You can download it from click here.
Login to Cloud Foundry:
cf loginRun the following command to create a dockerimage and push it to the dockerhub/github container registry and push the manifest to Cloud Foundry:
npm run cf:pushor
yarn run cf:pushor
pnpm run cf:pushor
bun run cf:pushOnce the app is deployed, you can access it at the URL provided by Cloud Foundry.
Contributing
If you find a bug or have a feature request, please open an issue on GitHub.
License
This project is licensed under the MIT License.