A starter template for building web applications with Node.js, Express, EJS, and Tailwind CSS.
NODE-EXPRESS-EJS-TAILWINDCSS-STARTER
āāā bin/ # Server start script (if applicable)
āāā node_modules/ # Dependencies (ignored in repo)
āāā public/ # Static assets (CSS, JS, Images)
ā āāā images/ # Image files
ā āāā javascripts/ # JavaScript files
ā āāā stylesheets/ # CSS files (includes Tailwind)
āāā routes/ # Express route handlers
ā āāā index.js # Main route
ā āāā users.js # Example user route
āāā views/ # EJS templates
ā āāā index.ejs # Main page
ā āāā error.ejs # Error page
āāā .gitignore # Ignored files
āāā .prettierrc # Code formatting rules
āāā app.js # Main application file
āāā LICENSE.md # License file
āāā package.json # Project dependencies (Update name "projectname" to your actual project name)
āāā package-lock.json # Dependency lock file
āāā README.md # Documentation
git clone [email protected]:mraxays/node-express-ejs-tailwindcss-starter.git
cd node-express-ejs-tailwindcss-starter
npm install
npm start
The server runs at http://localhost:3000/
by default.This project includes the following dependencies:
^4.21.2
)^3.1.10
)^4.0.15
)~1.9.1
for logging)~1.4.4
for handling cookies)~2.6.9
for debugging)~1.6.3
for error handling)^4.0.15
for Tailwind CLI)^3.1.9
for auto-restarting the server)^3.5.3
for code formatting)^0.6.11
for Tailwind-specific formatting)The following scripts are available:
This project is licensed under the MIT License.
Feel free to submit issues or pull requests to improve this starter template!