This project is a Vanilla JavaScript application set up with Vite, providing a fast and efficient development environment. This README outlines the setup process, project structure, and useful commands to get started.
- Project Overview
- Project Structure
- Setup Instructions
- Available Scripts
- Environment Variables
- Contributing
- License
- Contact
Pommi-Caters is a web-based platform designed using Vanilla JavaScript and Vite. The project leverages Vite's fast build tool to improve the development experience.
The directory structure of the project is as follows:
POMMI-CATERS/
│
├── .vscode/ # Visual Studio Code settings
├── assets/ # Assets directory
│ ├── css/
│ │ └── style.css # Main stylesheet
│ ├── js/
│ │ └── script.js # Main JavaScript file
│ └── images/ # Image assets
├── dist/ # Build output directory
│ ├── assets/
│ ├── index.html
│ └── vite.svg
├── public/ # Static assets to serve
│ ├── vite.svg
│ └── _header
├── .env # Environment variables
├── .gitignore # Git ignore file
├── index.html # Main HTML file
├── LICENSE # License file
├── main.js # Entry JavaScript file
├── package.json # Project configuration and dependencies
├── package-lock.json # Exact versions of installed dependencies
├── README.md # Project documentation (this file)
└── style-guide.md # Style guide for the project
Follow these steps to set up the project on your local machine:
- Clone the repository to your local machine:
git clone https://github.com/abinjustinkumaravel/Pommi-Caters.git
- Navigate into the project directory:
cd Pommi-Caters
Make sure you have Node.js installed. Then run the following command to install all dependencies:
npm install
Start the development server using Vite:
npm run dev
The application will be available at http://localhost:3000
.
Generate a production build using:
npm run build
This will create a build in the dist/
folder, optimized for production.
To locally serve the production build, run:
npm run preview
npm run dev
: Starts the Vite development server.npm run build
: Builds the application for production.npm run preview
: Serves the production build locally.
You can define your environment variables in a .env
file located in the project root. This file is used to store sensitive information such as API keys or configuration values.
Example .env
file:
VITE_API_URL=https://api.example.com
Contributions are welcome! Follow these steps to contribute:
- Fork the repository and clone your fork to your local machine.
- Create a new branch for your changes:
git checkout -b feature-name
- Commit your changes with a descriptive message:
git commit -m "Add feature XYZ"
- Push your branch to your GitHub fork:
git push origin feature-name
- Open a pull request against the
main
branch of this repository.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any questions or feedback, please feel free to reach out via GitHub issues.
GitHub Repository: Pommi-Caters