This repository, faqhub-livewire, is part of the national Iranian metaverse project, MetaRang. The goal of this project is to create a content management platform for community discussions and to facilitate knowledge sharing within the Iranian national metaverse. The faqhub-livewire project aims to enhance the user experience by providing a structured question-and-answer platform, supporting the citizens of MetaRang in their virtual engagement and collaboration.
To begin, you need to clone the repository to your local machine. Run the following command in your terminal:
git clone https://github.com/iranpsc/faqhub-livewire.gitOnce you have cloned the repository, navigate to the project directory:
cd faqhub-livewireTo install the necessary dependencies, you need to run the following command:
composer installAdditionally, you need to install JavaScript dependencies:
npm installDuplicate the .env.example file to create a new .env file:
cp .env.example .envUpdate the .env file with your database credentials and other configuration settings as required.
Generate the application key by running the following command:
php artisan key:generateTo create the required database tables, run the following command:
php artisan migrateThe faqhub-livewire project relies on an API running on port 8001. To start the API server, open a new terminal window or tab, navigate to the API project directory (faqhub-api-collection), and run:
php artisan serve --port=8001This will start the API server on http://localhost:8001.
To start the frontend development server, use the following command:
php artisan serveFor front-end development, you may also need to run:
npm run devEnsure both the API and frontend servers are running simultaneously for proper functionality of the project.
To connect the frontend with the API, make sure the faqhub-api-collection repository is running on port 8001. The frontend is configured to make requests to the API at http://localhost:8001. Ensure both servers are up and running for seamless operation.
We welcome contributions to improve the faqhub-livewire project. To contribute, please follow these steps:
-
Fork the Project: Fork the repository and work on your own copy.
-
Create a New Branch: For each feature or change, create a separate branch:
git checkout -b feature-name
-
Regular Commits: Save your changes with detailed and meaningful commit messages:
git commit -m "Detailed explanation of the change" -
Submit a Pull Request: After making changes and ensuring everything works properly, submit a pull request for review.
For developers working on faqhub-livewire, please follow these guidelines:
- Use Separate Branches: Each new feature or bug fix must be implemented in a separate branch. The branch name should reflect the type of change (e.g.,
feature-new-ui,bugfix-user-auth). - Regular and Clear Commits: Ensure each commit is descriptive and communicates the intent of the change clearly.
- Review and Approval: All pull requests must be reviewed by at least one other team member before merging.
- Adhere to Coding Standards: Use tools like PHP-CS-Fixer and ESLint to maintain coding standards and consistency.
- Code Cleanup: Remove any unused or test code before submitting a pull request to maintain the project's quality.
If you face any issues or have questions, please use the Issues section on GitHub to report bugs or requests. We are committed to improving the project and appreciate your feedback.