Skip to content

Commit 6225ad0

Browse files
committed
Udpate readme
1 parent c9b2f0b commit 6225ad0

File tree

2 files changed

+76
-15
lines changed

2 files changed

+76
-15
lines changed

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Imran Sayed
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+55-15
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,70 @@
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).
1+
## 🎨 Next.js WooCommerce REST API
2+
[![Project Status: Active.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
3+
![Stars](https://img.shields.io/github/stars/imranhsayed/nextjs-woocommerce-restapi?label=%E2%AD%90%20Stars)
4+
![Forks](https://img.shields.io/github/forks/imranhsayed/nextjs-woocommerce-restapi?color=%23ff69b4)
5+
![Contributors](https://img.shields.io/github/contributors/imranhsayed/nextjs-woocommerce-restapi?color=blue)
6+
![Follow](https://img.shields.io/github/followers/imranhsayed?label=Please%20follow%20%20to%20support%20my%20work%20%F0%9F%99%8F&style=social)
27

3-
## Getting Started
8+
- React WooCommerce Theme, using Decoupled Architecture in Next.js
9+
- Backend in WordPress
10+
- Front end in React.
11+
- Data is Fetched through REST API.
412

5-
First, run the development server:
13+
## Features
14+
1. Home Page, Blog Page, Post Page
15+
2. Post Preview ( Coming Soon )
16+
3. Product Pagination ( Coming Soon )
17+
4. Load More Products ( Coming Soon )
18+
8. REST API endpoints.
19+
9. Header and Footer in Next.js fetching from WordPress Menu items.
20+
10. WordPress Widgets displayed on Next.js frontend.
21+
11. Site title, tagline, copyright text, social links sourced from WordPress.
22+
12. Next.js Image component, that has image optimization at request time ( Coming Soon )
23+
13. Authentication with JWT and Http Only Cookie implementation. ( Coming Soon )
24+
14. Login feature for WP Post Preview in Next.js ( Coming Soon )
25+
15. Incremental Static (Re)generation and automatic creation of New Static post pages
26+
without having to re-build next.js the application. ( Coming Soon )
27+
14. Gutenberg styles support ( Coming Soon )
28+
29+
## [Tutorial Course](https://www.youtube.com/playlist?list=PLD8nQCAhR3tSRwsvzRtogv9MFkEWo5d9c)
30+
31+
## [Live Demo Link](#)
32+
Coming Soon.
33+
34+
## Setup
35+
36+
First clone/fork the repo and cd into it.
637

738
```bash
39+
git clone https://github.com/imranhsayed/nextjs-woocommerce-restapi.git
40+
cd nextjs-woocommerce-restapi
41+
npm install
842
npm run dev
9-
# or
10-
yarn dev
1143
```
1244

13-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
45+
## Add Headless features for WordPress
46+
47+
- Install and Activate following WordPress Plugins:
48+
49+
* [headless-cms](https://github.com/imranhsayed/headless-cms)
50+
* [woocommerce](https://wordpress.org/plugins/woocommerce/)
51+
52+
## Configuration :wrench:
1453

15-
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
54+
1. (Required) Create a `.env` file taking reference from `.env-example` and update your WordPressSite URL.
55+
- `NEXT_PUBLIC_WORDPRESS_URL=https://example.com`
1656

17-
## Learn More
57+
2. In your WordPress Dashboard, Go to Settings > General > Site Address (URL) ( Set this to Frontend URL e.g. http://localhost:3000 during development )
58+
3. Create the Header and Footer Menus In WordPress Dashboard and set them to HCMS Header menu and HCMS Footer Menu respectively.
1859

19-
To learn more about Next.js, take a look at the following resources:
60+
## Versioning :bookmark_tabs:
2061

21-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
22-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
62+
I use [Git](https://github.com/) for versioning.
2363

24-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
64+
## Author :bust_in_silhouette:
2565

26-
## Deploy on Vercel
66+
* **[Imran Sayed](https://twitter.com/imranhsayed)**
2767

28-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/import?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
68+
## License :page_with_curl:
2969

30-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
70+
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

0 commit comments

Comments
 (0)