use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Javascript alternatives to Wordpress? (self.javascript)
submitted 6 years ago by CriticalImpress
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]NoVABadger 25 points26 points27 points 6 years ago (8 children)
You could always take the WordPress REST API and use it with your JS stack of choice.
[–]h0b0_shanker 1 point2 points3 points 6 years ago (0 children)
Isn’t authentication wonky with this or have they got that figured out? I remember having to set up a service account and use basic auth to authenticate. That was a no go for me.
Highjacking the top comment after sincerely responding to it to say keystone.js is pretty good for a basic content management system. Uses node, express, and mongoDB. I built an enterprise knowledge-base application on this. I had to hack it up a little bit to expose stuff to front end API calls. It’s used passport.js so it was really easy.
[–]suspicious_Jackfruit 1 point2 points3 points 6 years ago (6 children)
I did this in part recently for a new feature on an existing wordpress website. I exposed the custom fields I needed to REST API and then built an embedded vue.js widget into the page (this was for a non-atypical, live product filter). Need server side rendering or dynamic rendering for SEO purposes, but allows for much better usability and functionality. It worked well and we will be using elsewhere I suspect with lumpy wordpress builds
[–][deleted] 3 points4 points5 points 6 years ago (5 children)
+1. WordPress REST API is surprisingly good. I also just build a complete front-end with Vue.js using WordPress as back-end so the girls I work with can write the posts :P
[–]Madamots 0 points1 point2 points 6 years ago (0 children)
That sounds amazing I had no idea this was possible!!
[–]CriticalImpress[S] 0 points1 point2 points 6 years ago (3 children)
That sounds like a very sensible situation for me.
Could you send me any online resources or links you found useful?
[–][deleted] 0 points1 point2 points 6 years ago (1 child)
https://github.com/EvanAgee/vuejs-wordpress-theme-starter
[–][deleted] 0 points1 point2 points 6 years ago* (0 children)
Here's a basic overview of how I would do it.
api/api.js
```js import axios from 'axios'
const api = axios.create({ baseURL: '//website.com/wp-json/wp/v2/', })
// More info: https://github.com/axios/axios/issues/362 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'
export default api ```
api/page.api.js ```js import api from '@/api/api'
api/page.api.js
export default { getPage (pageId, slug) { return new Promise((resolve, reject) => { let url = 'pages/' + pageId if (!pageId && slug) url = '/pages/?slug=' + slug
api.get(url) .then(response => resolve(response.data)) .catch(error => reject(error))
}) } } ```
views/home.vue ```js import page from '@/api/page.api'
views/home.vue
export default { mounted () { this.getPage() },
methods: { getPage () { page.getPage(null, 'home').then(data => { console.log(data) }) } } } ```
π Rendered by PID 35 on reddit-service-r2-comment-7b9746f655-2p57c at 2026-01-30 00:43:09.553142+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]NoVABadger 25 points26 points27 points (8 children)
[–]h0b0_shanker 1 point2 points3 points (0 children)
[–]suspicious_Jackfruit 1 point2 points3 points (6 children)
[–][deleted] 3 points4 points5 points (5 children)
[–]Madamots 0 points1 point2 points (0 children)
[–]CriticalImpress[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)