contentacms / contentajs Goto Github PK
View Code? Open in Web Editor NEWA nodejs server that proxies to Contenta CMS and holds custom code.
License: MIT License
A nodejs server that proxies to Contenta CMS and holds custom code.
License: MIT License
Hello,
I am following the instruction to install the server and I am having a hard time to access the server.
After cloning the repo, I created the config local.yml
:
cms:
host: http://headless.devel
cors:
origin:
- '*'
then I run npm start
, I see pm2
initializing but then when I hit localhost:3000
in my browser I get the error message :
This site can't be reached"
I tried running npm run debug
but no success there too.
What am I missing ?
Thanks for your help !
Ideally we'll want to have an example on how to expose our API using GraphQL as an alternative to JSON API.
This is currently blocked on:
Hello,
Some possibility have been remove from got.
json: true
('in your got.js file).
responseType: 'json'
do the job.
query : {query: JSON.stringify(request)}
(in ContentaJsonRpc.js) doesn't seem to work . It's ok with searchParams: {query: JSON.stringify(request)}
.++
Hello,
I have a lando drupal 8 installation set up using the contenta distro. The domain on my local http://colony.lndo.site.
I have followed the contenta js installation instructions from the you page.
Steps:
When I visit http://localhost:3000/api i get the response Cannot GET /api
. What's interesting is if I visit the domain without the /api. so...http://localhost:3000/ It looks like it's trying to load my contenta site.
Is there a piece that I am missing?
Sorry to bother you guys, but I'm having issues installing contenta js. I have a folder mysite.com that serves up from mysite.com/web so in my nginx conf server name is mysite.com and server route is mysite.com/web. So when I move the contentajs folder to my PROJECT_NAME is that mysite.com or mysite.com/web or something else? When I move the contentajs to the mysite.com folder npm install returns no package json. Please tell me what folder YOUR_PROJECT_NAME is supposed to be.
Thanks in advance
master
branch failed. π¨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. Iβm sure you can resolve this πͺ.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those donβt help, or if this issue is reporting something you think isnβt right, you can always ask the humans behind semantic-release.
The npm token configured in the NPM_TOKEN
environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/
.
If you are using Two-Factor Authentication, make configure the auth-only
level is supported. semantic-release cannot publish with the default auth-and-writes
level.
Please make sure to set the NPM_TOKEN
environment variable in your CI with the exact value of the npm token.
Good luck with your project β¨
Your semantic-release bot π¦π
Is there any documentation on implementing SSR with this?
I've installed ContentaCMS and ContentaJS. ContentaJS is correctly proxying across to the cms api and returning responses but I receive failed GET requests if I attempt to request anything that's not an API request.
I'm sure there is a few more things to configure before I'll have working SSR with a react app but I haven't been able to find any documentation as to how the SSR works and how I can implement. Just that this supports it.
Edit: I kind of realise now that I was thinking about this from the perspective of progressive decoupling. While Contenta and ContentaJS utilize a fully decoupled approach. Now that realise that it makes sense to me now that I would not getting any response via the ContentaJs proxy unless its an api call.
Ideally we want a Docker image that is easy to use to get a local installation of Contenta CMS and Contenta JS up and running quickly.
I think we may want to explore the possibility to base our project on https://github.com/drud/ddev
Should we access custom REST endpoints directly on contentacms or not? If so, how could we add these end points to contentajs?
I want use a fresh drupal 8 install with jsonapi module. are there any way to connect contentajs to fresh drupal 8?
Followed install instructions here: https://github.com/contentacms/contentajs/blob/master/docs/install.md
Error on yarn start
:
yarn start
yarn run v1.7.0
warning package.json: No license field
error Command "start" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
node --version
v10.7.0
yarn --version
1.7.0
On my Mac:
/contenta/contentacms << installed contenta_jsonapi
/contenta/contentjs << installed this here, contents as follows:
config << has local.yml
node_modules
package.json
yarn.lock
I ran yarn start
from within /contenta/contentjs
How join slack community (it says "contact the space administrator...")
My ContentaCMS is nested (localhost:MAMP-PORT/contenta/web), installed via contenta_jsonapi_project. When writing ContentaJS local config, 'cms.host' requires a complete path to the ContentaCMS to get any type of connection to the node proxy, otherwise connections are refused.
While the app is accepting connections, requests sent to the node proxy api (localhost:NODE-PORT/api) get a 404 response in HTML:
...<pre>Cannot GET /api</pre>...
Direct requests to ContentaCMS API work perfectly.
I've started to go through the built code, but haven't had much luck in finding a solution.
Suggestions?
Hello,
Trying to install contentajs, not sure what the project route is. I have a folder /contenta and I have contenta cms in the /contenta/www/ directory. I have installed contentajs in the /contenta/ directory but I get the following error:
root@aegir:/contenta# git init && git add . && git ci -m 'feat: project initialization with Contenta JS'
Reinitialized existing Git repository in /contenta/.git/
git: 'ci' is not a git command. See 'git --help'.
Did you mean one of these?
am
commit
config
diff
fsck
gc
init
mv
rm
any ideas?
package.json is missing the script 'npm run stop' that would stop the pm2 process.
The installation instructions suggest this script exists. :)
Hi there - I'm curious if a separate package using passport to integrate with Simple OAuth has been developed anywhere?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.