Next.js & WooCommerce integration with Apollo Client & WP-GraphQL for efficient ecommerce functionalities in WordPress.
To get started with this project, follow these steps to set up your development environment.
Make sure you have the following installed on your machine:
To get the project files onto your local machine, you need to clone the repository. You can do this by visiting the repository page on GitHub, clicking the green "Code" button, and copying the URL provided. Then, use your preferred Git client or command line to clone the repository to your desired directory.
Next, install the project dependencies using Yarn:
yarn install
Before running the development server, you need to create a .env.local file based on the provided .env.sample file. This file will contain your environment-specific variables.
- Copy the sample environment file:
cp .env.sample .env.local
- Open
.env.local
in your preferred text editor and configure the necessary environment variables according to your setup. If you want to change the API URL, you can do this by modifying theNEXT_PUBLIC_GRAPHQL_URL
variable in the .env.local file.
Now you can start the development server:
yarn dev
Your application should now be running at http://localhost:3000.
Forking the repository Creating a new branch for your feature or bug fix Submitting a pull request
This project is licensed under the MIT License. See the LICENSE file for details.