- Node.js and npm installed on your machine.
- Clone the repository:
git clone https://github.com/dev2019zheng/threejs-cube-with-text.git cd threejs-cube-with-text
- Install the dependencies:
npm install
- Start the development server:
npm start
- Open your browser and navigate to
http://localhost:8080
to view the demo.
- Build the project:
npm run build
- The output will be in the
dist
directory. You can serve it using any static file server.
This project uses GitHub Actions for Continuous Integration and Continuous Deployment (CI/CD).
On every push and pull request to the main
branch, the following steps are performed:
- Checkout the code
- Set up Node.js
- Install dependencies
- Run build
- Run tests
On every push to the main
branch, after the CI steps are successful, the project is deployed to GitHub Pages. The deployment steps include:
- Checkout the code
- Set up Node.js
- Install dependencies
- Build the project
- Deploy to GitHub Pages
The deployment is handled by the peaceiris/actions-gh-pages action.
This project is licensed under the MIT License.