This is a Vue.js project integrated with Tailwind CSS, used for the Club Notification System. Follow the instructions below to set up, install dependencies, and run the Vue app locally.
Ensure that the following software is installed on your machine:
To check if you have Node.js and npm installed, run:
node -v
npm -v
Clone the repository to your local machine:
git clone https://github.com/Asmodeus14/Club-Notification-System
After cloning the repo, navigate into the project folder:
cd Club-Notification-System
Run the following command to install all the required dependencies for the project:
npm install
If Tailwind CSS is not installed, you can install it manually:
vue add tailwind
select -minimal
Add Tailwind’s base, components, and utilities to your src/assets/tailwind.css
(if the file doesn't exist, create it):
/* src/assets/tailwind.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
In the vue.config.js
file (create it if it doesn't exist), add the following content to make sure Tailwind CSS is processed correctly by Vue:
// vue.config.js
module.exports = {
css: {
loaderOptions: {
postcss: {
plugins: [require('tailwindcss'), require('autoprefixer')],
},
},
},
};
Ensure that src/index.css
includes the Tailwind directives:
/* src/index.css */
@import './assets/tailwind.css';
After completing the setup, start the development server to see the project in action:
npm run serve
This will run the Vue.js development server. You can access the app by navigating to http://localhost:8080 in your browser.
Club-Notification-System/
│
├── src/
│ ├── assets/
│ │ └── tailwind.css # Tailwind CSS styles
│ ├── components/
│ │ ├── Login.vue # Login component
│ │ └── LoginForm.vue # Form component
│ ├── App.vue # Main Vue component
│ └── main.js # Entry point for the Vue app
│
├── package.json # Project dependencies and scripts
├── vue.config.js # Configuration for Vue and PostCSS
├── .gitignore # Git ignore file (node_modules, dist, etc.)
└── README.md # This README file
The following files and folders are ignored by default (no need to commit them to your repository):
node_modules/ # Directory containing all npm packages
dist/ # Production build folder
.DS_Store # macOS system files
.idea/ # IDE configuration files (e.g., JetBrains)
*.log # Log files
To build the app for production, use:
npm run build
This will create an optimized production build in the dist/
folder.
To check for any linting issues, run:
npm run lint
To fix any auto-fixable issues:
npm run lint -- --fix
- Missing Tailwind CSS Classes: If you don’t see Tailwind styles applied, ensure you've followed the steps to configure Tailwind in
tailwind.css
andvue.config.js
. - Dependencies Not Installing: If you face issues while installing dependencies, try deleting
node_modules
and runningnpm install
again:rm -rf node_modules npm install
This project is licensed under the MIT License.