A simple web application that generates random band names based on randomly selected adjectives and nouns. This project uses Node.js with Express for the server-side logic, and EJS as the templating engine to render dynamic content.
- Generates random band names based on predefined adjectives and nouns.
- Dynamic content rendering using EJS.
- Simple, minimalistic UI with basic CSS.
- Dynamic footer with the current year.
- Node.js: Server-side JavaScript runtime.
- Express: Web framework for Node.js.
- EJS: Embedded JavaScript templates for rendering views.
- body-parser: Middleware for parsing request bodies.
- CSS: Styling for the application.
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/tarankumar001/Band-Generator.git
-
Navigate to the project directory:
cd Band-Generator -
Install the required dependencies:
npm install
-
Start the server:
npm start
-
Open your browser and navigate to:
http://localhost:3000
- Open the home page.
- Click the "Generate Name" button to generate a random band name.
- The generated name will be displayed on the page.
- /public # Contains static files (CSS, images, etc.)
- /css
- styles.css # Main CSS file for styling
- /views # EJS templates for rendering views
- /partials # EJS partials (header, footer)
- header.ejs
- footer.ejs
- index.ejs # Main template for rendering the homepage
- index.js # Main Node.js server file
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b your-feature-branch. - Make your changes and commit them:
git commit -m "Add your commit message". - Push your changes to your fork:
git push origin your-feature-branch. - Create a pull request on GitHub.