|
1 | | -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). |
2 | 1 |
|
3 | | -## Getting Started |
| 2 | +# MetaRang Frontend Project |
4 | 3 |
|
5 | | -First, run the development server: |
| 4 | +## Table of Contents |
| 5 | + |
| 6 | +- [Introduction](#introduction) |
| 7 | +- [Installation](#installation) |
| 8 | +- [Running the Project](#running-the-project) |
| 9 | +- [Contribution](#contribution) |
| 10 | +- [Development Rules](#development-rules) |
| 11 | +- [FAQ](#faq) |
| 12 | + |
| 13 | +## Introduction |
| 14 | + |
| 15 | +This project is designed as part of the national Iranian metaverse known as **MetaRang**. The goal of this project is to develop a frontend platform that provides users with access to the features of the Iranian national metaverse through an optimized and user-friendly interface. This project is a part of the Behesht Supply Chain and aims to create a unique and innovative user experience for users in virtual and parallel worlds. |
| 16 | + |
| 17 | +## Installation |
| 18 | + |
| 19 | +### 1. Clone the Repository |
| 20 | + |
| 21 | +First, you need to clone the repository to your system. Run the following command in your terminal: |
| 22 | + |
| 23 | +```bash |
| 24 | +git clone https://github.com/iranpsc/Metaverse-Rang-Front-NextJS.git |
| 25 | +``` |
| 26 | + |
| 27 | +### 2. Navigate to the Project Directory |
| 28 | + |
| 29 | +Once you have cloned the repository, navigate to the project directory: |
| 30 | + |
| 31 | +```bash |
| 32 | +cd Metaverse-Rang-Front-NextJS |
| 33 | +``` |
| 34 | + |
| 35 | +### 3. Install Dependencies |
| 36 | + |
| 37 | +To install the required dependencies, use the following commands: |
| 38 | + |
| 39 | +```bash |
| 40 | +npm install |
| 41 | +``` |
| 42 | + |
| 43 | +## Running the Project |
| 44 | + |
| 45 | +### 4. Run the Project |
| 46 | + |
| 47 | +To start the project, use the following command based on your development environment: |
| 48 | + |
| 49 | +- **Development mode:** |
6 | 50 |
|
7 | 51 | ```bash |
8 | 52 | npm run dev |
9 | | -# or |
10 | | -yarn dev |
11 | | -# or |
12 | | -pnpm dev |
13 | 53 | ``` |
14 | 54 |
|
15 | | -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
| 55 | +This will run the development server on port `5175`. |
| 56 | + |
| 57 | +- **Production mode:** |
| 58 | + |
| 59 | +```bash |
| 60 | +npm run build |
| 61 | +npm run start |
| 62 | +``` |
| 63 | + |
| 64 | +The production server will also run on port `5175`. |
| 65 | + |
| 66 | +### 5. View the Project in the Browser |
| 67 | + |
| 68 | +Instead of accessing the default address `http://localhost:3000`, you need to navigate to the following URLs to access the pages: |
| 69 | + |
| 70 | +- **English version:** |
| 71 | + |
| 72 | +``` |
| 73 | +http://localhost:5175/en |
| 74 | +``` |
| 75 | + |
| 76 | +- **Persian version:** |
| 77 | + |
| 78 | +``` |
| 79 | +http://localhost:5175/fa |
| 80 | +``` |
| 81 | + |
| 82 | +## Contribution |
16 | 83 |
|
17 | | -You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. |
| 84 | +We welcome your contributions to improve the project. To contribute to the project, follow these steps: |
18 | 85 |
|
19 | | -[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. |
| 86 | +1. **Fork the Project:** Fork the repository and work on your own copy. |
| 87 | +2. **Create a New Branch:** For each feature or change, create a separate branch: |
20 | 88 |
|
21 | | -The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. |
| 89 | + ```bash |
| 90 | + git checkout -b feature-name |
| 91 | + ``` |
22 | 92 |
|
23 | | -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. |
| 93 | +3. **Regular Commits:** Save your changes with detailed and meaningful commit messages: |
24 | 94 |
|
25 | | -## Learn More |
| 95 | + ```bash |
| 96 | + git commit -m "Complete explanation of the change" |
| 97 | + ``` |
26 | 98 |
|
27 | | -To learn more about Next.js, take a look at the following resources: |
| 99 | +4. **Submit a Pull Request:** After making changes and ensuring everything works properly, submit a pull request for review. |
28 | 100 |
|
29 | | -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
30 | | -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
| 101 | +## Development Rules |
31 | 102 |
|
32 | | -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! |
| 103 | +For project developers, the following guidelines must be followed: |
33 | 104 |
|
34 | | -## Deploy on Vercel |
| 105 | +1. **Use Separate Branches:** Each new feature or bug fix must be implemented in a separate branch. The branch name should correspond to the change (e.g., `feature-branch`). |
| 106 | +2. **Regular and Clear Commits:** Changes should be saved as regular commits with clear, descriptive messages. |
| 107 | +3. **Review and Approval:** Before merging any pull request, it must be reviewed by the development team. |
| 108 | +4. **Adherence to Coding Standards:** Use linting tools like ESLint to maintain code quality and follow project standards. |
| 109 | +5. **Code Cleanup:** Before submitting a pull request, ensure that no unnecessary or test code remains in the project. |
35 | 110 |
|
36 | | -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. |
| 111 | +## FAQ |
37 | 112 |
|
38 | | -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
| 113 | +If you encounter any problems or have any questions, feel free to contact us through the Issues section on GitHub and submit bug reports or requests. |
0 commit comments