Skip to content

Commit 0501522

Browse files
author
Sagar Jain
committed
feat: (WIP) updating documentation and readme files
1 parent d0f4828 commit 0501522

File tree

5 files changed

+66
-33
lines changed

5 files changed

+66
-33
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 gatsbyjs
3+
Copyright (c) 2019 Sagar Jain
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+15-30
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,27 @@
1-
# Yellowcake
1+
# A starter Gatsby template for a Wordpress blog, built using Typescript and Ant Design
22

3-
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
4-
[![dependencies](https://david-dm.org/jinksi/netlify-cms-react-starter.svg?style=flat-square)](https://david-dm.org/jinksi/gatsbro)
3+
[![Github version](https://img.shields.io/github/package-json/v/sagar7993/gatsby-wordpress-typescript-blog-boilerplate)](https://github.com/sagar7993/gatsby-wordpress-typescript-blog-boilerplate/releases)
4+
[![GitHub License](https://img.shields.io/github/license/sagar7993/gatsby-wordpress-typescript-blog-boilerplate)](https://opensource.org/licenses/MIT)
5+
[![GitHub issues](https://img.shields.io/github/issues-raw/sagar7993/gatsby-wordpress-typescript-blog-boilerplate.svg)](https://github.com/sagar7993/gatsby-wordpress-typescript-blog-boilerplate/issues)
56

6-
An opinionated starter project for creating lightning-fast websites with [Gatsby](https://gatsbyjs.org) v2 and [Netlify CMS](https://netlifycms.org) v2.
7+
This is an opinionated starter project to help you create lightning fast PWA websites with [Gatsby](https://gatsbyjs.org) and [Wordpress](https://wordpress.com) CMS, built using [Typescript](http://www.typescriptlang.org/) and [Ant Design](https://github.com/ant-design/ant-design).
78

8-
- **[Gatsby](https://gatsbyjs.org)** static site generator
9-
- **[Netlify CMS](https://github.com/netlify/netlify-cms)** for content management
10-
11-
## See also
12-
13-
[Netlify CMS Docs](https://www.netlifycms.org/docs/)
14-
[Netlify CMS Repo](https://github.com/netlify/netlify-cms)
159

16-
## Get going
10+
- **[Gatsby](https://gatsbyjs.org)** static site generator
11+
- **[Wordpress](https://wordpress.com)** for content management
12+
- **[Typescript](https://typescriptlang.org)** for statically-typed clean JavaScript code
13+
- **[Ant Design](https://github.com/ant-design/ant-design)** for theming and UI
1714

18-
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/thriveweb/yellowcake&stack=cms)
15+
## Getting started
1916

20-
1. Hit the **Deploy to Netlify** button. This will:
17+
Hit the **Deploy to Netlify** button. This will:
2118

2219
- Clone the repo into your Github account
23-
- Create you a new project on Netlify, build & deploy
24-
25-
1. Once your Netlify project has been created, check a couple of settings:
20+
- Create a new project on Netlify, build & deploy
2621

27-
- Enable **Identity**
28-
- Change **Registration Preferences** to **Invite Only**
29-
- Enable **Git Gateway**
22+
## Setting up Wordpress
3023

31-
1. Invite users (probably yourself) to enable admin access
32-
33-
- Open the **Identity** tab and hit **Invite Users**
34-
35-
## Show me the CMS!
36-
37-
The CMS lives at [\_\_YOUR_SITE_NAME\_\_.netlify.com/admin](https://__YOUR_SITE_NAME__.netlify.com/admin).
24+
Use the included docker-compose.yml file to setup Wordpress on your local machine
3825

3926
## Developing
4027

@@ -143,6 +130,4 @@ Get Your Instagram Access Token [here](https://generator.thrivex.io/). In order
143130

144131
## 💫 Deploy
145132

146-
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-hello-world)
147-
148-
<!-- AUTO-GENERATED-CONTENT:END -->
133+
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/sagar7993/gatsby-wordpress-typescript-blog-boilerplate)

docker-compose.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
version: '3'
2+
3+
services:
4+
# Database
5+
db:
6+
image: mysql:5.7
7+
volumes:
8+
- db_data:/var/lib/mysql
9+
restart: always
10+
environment:
11+
MYSQL_ROOT_PASSWORD: password
12+
MYSQL_DATABASE: wordpress
13+
MYSQL_USER: wordpress
14+
MYSQL_PASSWORD: wordpress
15+
networks:
16+
- wpsite
17+
# phpmyadmin
18+
phpmyadmin:
19+
depends_on:
20+
- db
21+
image: phpmyadmin/phpmyadmin
22+
restart: always
23+
ports:
24+
- '8080:80'
25+
environment:
26+
PMA_HOST: db
27+
MYSQL_ROOT_PASSWORD: password
28+
networks:
29+
- wpsite
30+
# Wordpress
31+
wordpress:
32+
depends_on:
33+
- db
34+
image: wordpress:latest
35+
ports:
36+
- '8001:80'
37+
restart: always
38+
volumes: ['./:/var/www/html']
39+
environment:
40+
WORDPRESS_DB_HOST: db:3306
41+
WORDPRESS_DB_USER: wordpress
42+
WORDPRESS_DB_PASSWORD: wordpress
43+
networks:
44+
- wpsite
45+
networks:
46+
wpsite:
47+
volumes:
48+
db_data:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"dependencies": {
4242
"antd": "^3.0.0",
43-
"axios": "^0.1.0",
43+
"axios": "^0.19.0",
4444
"gatsby": "^2.0.0",
4545
"gatsby-image": "^2.0.0",
4646
"gatsby-paginate": "^1.0.0",

src/pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const IndexPage = (props: Props) => {
3232
<Card>
3333
<Row gutter={24} type="flex" align="middle">
3434
<Col xs={24} sm={24} md={24} lg={24} xl={24} xxl={24}>
35-
<h2>This is an opinionated starter project to help you create lightening fast PWA websites with Gatsby and Wordpress CMS, built using Typescript and Ant Design.</h2>
35+
<h2>This is an opinionated starter project to help you create lightning fast PWA websites with Gatsby and Wordpress CMS, built using Typescript and Ant Design.</h2>
3636
{fluid && <Image fluid={fluid} alt="Home screen banner" title="Home screen banner" />}
3737
</Col>
3838
<Col xs={24} sm={24} md={24} lg={24} xl={24} xxl={24}>

0 commit comments

Comments
 (0)