strapi / strapi Goto Github PK
View Code? Open in Web Editor NEWπ Strapi is the leading open-source headless CMS. Itβs 100% JavaScript/TypeScript, fully customizable and developer-first.
Home Page: https://strapi.io
License: Other
π Strapi is the leading open-source headless CMS. Itβs 100% JavaScript/TypeScript, fully customizable and developer-first.
Home Page: https://strapi.io
License: Other
I was trying to use the MongoDB adapter but the installation process failed. I know there are #7 , #11, #47 issues but I think the problem root is Windows + Strapi.
I've got similar error messages in cmd running:
npm install sails-mongo --save
What did I? Easy, I deleted the node_modules/ folder and executed:
npm install
npm install sails-mongo --save
Problem kaput!
PD: I am using the Strapi's latest version (1.5.1).
Used the dashboard to setup the db. Sync to the local install did the following
debug: Rebuilding application dictionary...
debug: Reloading the ORM...
error: The adapter `sails-mongo` is not installed.
error: Execute `$ npm install sails-mongo --save` to install it.
vagrant:~/nodeprojs/strapi/blogg$ strapi start
error: The adapter `sails-mongo` is not installed.
error: Execute `$ npm install sails-mongo --save` to install it.
Issuing the command manually did the following:
vagrant:~/nodeprojs/strapi/blogg$ npm i sails-mongo --save
-
> [email protected] install /home/vagrant/nodeprojs/strapi/blogg/node_modules/sails-mongo/node_modules/mongodb/node_m
odules/mongodb-core/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)
make: Entering directory `/home/vagrant/nodeprojs/strapi/blogg/node_modules/sails-mongo/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build'
CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory
#include <gssapi/gssapi.h>
^
compilation terminated.
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory `/home/vagrant/nodeprojs/strapi/blogg/node_modules/sails-mongo/node_modules/mongodb/node_m$
dules/mongodb-core/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:$
3)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.13.0-52-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/vagrant/nodeprojs/strapi/blogg/node_modules/sails-mongo/node_modules/mongodb/node_modules/mongo$
b-core/node_modules/kerberos
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
[email protected] node_modules/sails-mongo
βββ [email protected]
βββ [email protected] ([email protected], [email protected])
βββ [email protected] ([email protected], [email protected], [email protected])
The app started again, but I obviously am not confident that it will work, nor am I confident on return to default disk state.
I don't remember, but I have a sense that I had a problem with installation of sails-mongo when experimenting with sails/waterline.
Suggestions:
Hello.
Do you plan to add support JSON API? Support JSON API important Ember.js developers and other frameworks.
remove all hardcoded protocols.....
also security ssl: true doesn't do anything?
example: $.get('//strapi-1-5-gregbenner.c9users.io', function(data) { }); will resolve http or https and work.
Mixed Content: The page at 'https://strapi-1-5-gregbenner.c9users.io/admin/#!/strapi/explorer/post/create' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://strapi-1-5-gregbenner.c9users.io/:8080/admin/explorer/user?limit=10&skip=0&where=%7B%7D'. This request has been blocked; the content must be served over HTTPS.(anonymous function) @ vendors.js:10765sendReq @ vendors.js:10558serverRequest @ vendors.js:10268processQueue @ vendors.js:14792(anonymous function) @ vendors.js:14808Scope.$eval @ vendors.js:16052Scope.$digest @ vendors.js:15870Scope.$apply @ vendors.js:16160done @ vendors.js:10589completeRequest @ vendors.js:10787requestLoaded @ vendors.js:10728
vendors.js:10765 Mixed Content: The page at 'https://strapi-1-5-gregbenner.c9users.io/admin/#!/strapi/explorer/post/create' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://strapi-1-5-gregbenner.c9users.io/:8080/admin/explorer/comment?limit=10&skip=0&where=%7B%7D'. This request has been blocked; the content must be served over HTTPS.(anonymous function) @ vendors.js:10765sendReq @ vendors.js:10558serverRequest @ vendors.js:10268processQueue @ vendors.js:14792(anonymous function) @ vendors.js:14808Scope.$eval @ vendors.js:16052Scope.$digest @ vendors.js:15870Scope.$apply @ vendors.js:16160done @ vendors.js:10589completeRequest @ vendors.js:10787requestLoaded @ vendors.js:10728
vendors.js:12520 Error: [jqLite:nosel] Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element
http://errors.angularjs.org/1.4.8/jqLite/nosel
at vendors.js:68
at JQLite (vendors.js:2809)
at removeComments (vendors.js:9031)
at vendors.js:8507
at processQueue (vendors.js:14792)
at vendors.js:14808
at Scope.$eval (vendors.js:16052)
at Scope.$digest (vendors.js:15870)
at Scope.$apply (vendors.js:16160)
at done (vendors.js:10589)(anonymous function) @ vendors.js:12520(anonymous function) @ vendors.js:9292processQueue @ vendors.js:14800(anonymous function) @ vendors.js:14808Scope.$eval @ vendors.js:16052Scope.$digest @ vendors.js:15870Scope.$apply @ vendors.js:16160done @ vendors.js:10589completeRequest @ vendors.js:10787requestLoaded @ vendors.js:10728
vendors.js:29708 GET https://strapi-1-5-gregbenner.c9users.io/admin/select2.png 404 (Not Found)(anonymous function) @ vendors.js:29708forEach @ vendors.js:354computeCssStyles @ vendors.js:29707computeCachedCssStyles @ vendors.js:29827computeTimings @ vendors.js:29890init @ vendors.js:30040prepareRegularAnimation @ vendors.js:30686initDriverFn @ vendors.js:30466invokeFirstDriver @ vendors.js:32141triggerAnimationStart @ vendors.js:31987nextTick @ vendors.js:29432scheduler @ vendors.js:29402(anonymous function) @ vendors.js:32009Scope.$digest @ vendors.js:15946Scope.$apply @ vendors.js:16160done @ vendors.js:10589completeRequest @ vendors.js:10787requestLoaded @ vendors.js:10728
onloadwff.js:417 GET https://strapi-1-5-gregbenner.c9users.io/admin/select2.png 404 (Not Found)lpIsVisible @ onloadwff.js:417fieldIsDoublePassword @ onloadwff.js:976chk_form_has_password @ onloadwff.js:942checkForLoginForm @ onloadwff.js:937setupIcons @ onloadwff.js:672evalScriptsInFrame @ onloadwff.js:212(anonymous function) @ onloadwff.js:403
vendors.js:10765 Mixed Content: The page at 'https://strapi-1-5-gregbenner.c9users.io/admin/#!/strapi/explorer/post/create' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://strapi-1-5-gregbenner.c9users.io/:8080/admin/explorer/user?limit=10&skip=0&where=%7B%7D'. This request has been blocked; the content must be served over HTTPS.(anonymous function) @ vendors.js:10765sendReq @ vendors.js:10558serverRequest @ vendors.js:10268processQueue @ vendors.js:14792(anonymous function) @ vendors.js:14808Scope.$eval @ vendors.js:16052Scope.$digest @ vendors.js:15870Scope.$apply @ vendors.js:16160(anonymous function) @ vendors.js:17927completeOutstandingRequest @ vendors.js:5552(anonymous function) @ vendors.js:5829
vendors.js:10765 Mixed Content: The page at 'https://strapi-1-5-gregbenner.c9users.io/admin/#!/strapi/explorer/post/create' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://strapi-1-5-gregbenner.c9users.io/:8080/admin/explorer/user?limit=10&skip=0&where=%7B%22id%22:%7B%22!%22:%5B1%5D%7D%7D'. This request has been blocked; the content must be served over HTTPS.(anonymous function) @ vendors.js:10765sendReq @ vendors.js:10558serverRequest @ vendors.js:10268processQueue @ vendors.js:14792(anonymous function) @ vendors.js:14808Scope.$eval @ vendors.js:16052Scope.$digest @ vendors.js:15870Scope.$apply @ vendors.js:16160(anonymous function) @ vendors.js:17927completeOutstandingRequest @ vendors.js:5552(anonymous function) @ vendors.js:5829
vendors.js:10765 Mixed Content: The page at 'https://strapi-1-5-gregbenner.c9users.io/admin/#!/strapi/explorer/post/create' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://strapi-1-5-gregbenner.c9users.io/:8080/admin/explorer/comment?limit=10&skip=0&where=%7B%7D'. This request has been blocked; the content must be served over HTTPS.
I was adding relations in the Studio then I tried to restart the local app and now I am getting this:
warn: Setting the migrate strategy of the companies
model to alter
.
The app doesn't start and the studio won't connect. Is there a way to delete these relations manually?
url: http://studio.strapi.io/#!/login
Given proper info, the login doesn't continue to the dashboard. the progress bar across the top advances, but the page doesn't react to the form submission.
I tried 'forgot password' just in case I had it wrong (not likely) and the forgot password screen behaves the same way.
Well this one is pretty easy but i'll hand to yourself how you want to fix it.
This code is from https://github.com/wistityhq/strapi-generate-api/blob/master/lib/before.js
When executing strapi generate api
pluralize doesn't handle the undefined
gracefully so we have to do it ourself.
TypeError: Cannot read property 'toLowerCase' of undefined
// `scope.args` are the raw command line arguments.
_.defaults(scope, {
id: scope.args[0],
idPluralized: pluralize.plural(scope.args[0]),
attributes: _.slice(scope.args, 1)
});
// Validate custom scope variables which are required by this generator.
if (!scope.rootPath || !scope.id) {
return cb.invalid('Usage: `$ strapi generate api <myAPI> [attribute|attribute:type ...]`');
}
am I missing something or is it not implemented yet? Also is there an actual working link to the documentation?
Love the documentation, but I wish there was a way to search it.
I didn't see commits for many days. Are you still working actively?
Hi guys!
What do you think about GraphiQL?
GraphiQL - An in-browser IDE for exploring GraphQL. Try the live demo.
Maybe you can add it to the admin panel?
or it can be added as a separate url available only to administrators.
Maybe it will help you. There is a plugin for koa: koa-graphiql
The big problem - it's outdated documentation. Please specify the version of the library in the documentation? This will allow access to the documentation of older versions. This makes it easy to identify outdated documentation.
Nevermind.
riight now 'where', 'limit', 'skip' and 'sort' are actions used in the blueprint actions; 'select' would be a helpful one as well
I created an api called ali-api
. After starting the strapi-server I'm greated by the error below.
The name should be checked at creation time.
Do you want me to make a PR to add this check to https://github.com/wistityhq/strapi-generate-api?
ali-api $ strapi generate api ali-api
info: Generated a new api `ali-api` at `./api`.
ali-api $ strapi start
info: Your server is running at http://localhost:1337
debug: Time: Fri Nov 20 2015 10:06:59 GMT+0100 (CET)
debug: Environment: development
debug: Process PID: 12479
debug: Cluster: master
info: To shut down your server, press <CTRL> + C at any time
Error: Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "Ali-api" does not.
It seems graphql does not work properly.
Here is a list of articles in the my admin page:
When I'm trying to get a list of articles, author of the article is not included in all articles.
The parameter createdBy
is only for the first article. As far as I know it's not proper behavior for graphql. Maybe it's a bug?
My strapi version:
Β» strapi -v
1.5.4
If you in Studio change the name of your template and press "update template" a new template is created thus not updating the old one.
As a matter of fact, according to Google, the word studio does not appear on strapi.io when searching using the term site:strapi.io studio.
Feature request; making it possible to set default value in studio for a model field like boolean etc.
/home/ubuntu/workspace/node_modules/strapi/node_modules/grant-koa/node_modules/grant/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js:35
var keys = objectKeys(Writable.prototype);
^
TypeError: Cannot convert undefined or null to object
Clean install of Strapi 1.4.1.. after creating one user successfully then restarting the server I was bombarded with some missing packages I manually installed like 'is-array' then above is the output.
It's impossible to generate APIs from the Studio on Windows. It involves the studio
hook on the framework (probably the unzip task).
Is it possible to create dynamic roles like "is contributor"?
For instance setting admins and moderators for specific a specific model and its relations.
Looks like PUT in dashboard is disallowed on everything.
Request URL:http://localhost:1337/dashboard/explorer/user/2
Request Method:PUT
Status Code:405 Method Not Allowed
It's possible to do CRUD operations through query and body parameters.
Why allow two way of doing this? When is it useful to do it through queries?
Would be great to show an example of logging a user in from the public site. I see the admin section has a full fledged angular application and 1000's of lines of code to do this. It's still not clear the mechanism to create a session.
Is it simply a POST to /login with a response that should be added as cookie?
I would like to change the route for user from /user/:id
to /user/:username
. How can I do it?
Can I do this with waterline?
Or do I have to write custom action in the user controller?
I'm confused :) probably time for me to go to bed and try to do it tomorrow :)
There's currently nothing other than the project name to identify a project on the dashboard. This means that multiple projects with the same name could be easily confused. Clearly there's some identifier that keeps it straight in your system, perhaps that info could be revealed?
Suggestion: Perhaps you could identify it by something automated, tho there could be security concerns with possible identifiers (computer name, ip address, etc). It may even be as simple as forcing the user to use unique names.
In your code, you use const deferred = Promise.defer();
to create a new Promise. According to https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Deferred this method is obsolete.
You should use the ES6 way: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
new Promise(function(resolve, reject) {
if (ok) {
resolve();
} else {
reject();
}
});
function loadHook(id, cb) {
const timeoutInterval = 5000;
let hookTimeout;
...
}
in File : https://github.com/wistityhq/strapi/blob/master/lib/private/loadHooks.js#L85
We need a way of setting the timeout via the strapi environment. This value is too small for remote connections, for example Amazon RDS.
Hi,
I was trying to install strapi and I got this error
Error: No compatible version found: koa-lusca@'>=2.1.0-0 <3.0.0-0'
Can i fix it myself?
Would it be possible to add comments to generated files that show which parts Studio will overwrite?
I tried to add a new database in the studio. After successfully creating a new database my config file became looks like this:
{
"orm": {
"adapters": {
"disk": "sails-disk",
"mongo": "sails-mongo"
},
"defaultConnection": "default",
"connections": {
"default": {
"adapter": "disk",
"filePath": ".tmp/",
"fileName": "default.db",
"migrate": "alter"
},
"permanent": {
"adapter": "disk",
"filePath": "./data/",
"fileName": "permanent.db",
"migrate": "alter"
},
"mymongo": {
"adapter": "mongo",
"host": "localhost",
"port": 27017,
"user": "",
"password": "",
"database": "strapi"
}
}
}
}
However, I found an error in the console. This is full listing:
strapi start
info: Server started in /Users/kulakowka/Documents/node.js/sandbox/appName
info: Your server is running at http://localhost:1337
debug: Time: Thu Dec 10 2015 17:09:44 GMT+0300 (MSK)
debug: Environment: development
debug: Process PID: 42079
debug: Cluster: master
info: To shut down your server, press <CTRL> + C at any time
warn: New worker starting...
debug: Process PID: 42080
debug: Cluster: worker #1
info: Connection with the Studio server found, please wait a few seconds...
info: Connected with the Studio server.
warn: We need to flush server.
warn: Install dependencies if we have to.
info: Application restarted
warn: Installing the `sails-mongo` adapter, please wait...
/usr/local/lib/node_modules/strapi/node_modules/waterline/lib/waterline/connections/index.js:61
throw new Error(msg);
^
Error: Unknown adapter "mongo" for connection `mymongo`. You should double-check that the connection's `adapter` property matches the name of one of your adapters. Or perhaps you forgot to include your "mongo" adapter when you called `waterline.initialize()`...
at /usr/local/lib/node_modules/strapi/node_modules/waterline/lib/waterline/connections/index.js:61:13
at Array.forEach (native)
at _build (/usr/local/lib/node_modules/strapi/node_modules/waterline/lib/waterline/connections/index.js:44:24)
at new module.exports (/usr/local/lib/node_modules/strapi/node_modules/waterline/lib/waterline/connections/index.js:23:8)
at Waterline.initialize (/usr/local/lib/node_modules/strapi/node_modules/waterline/lib/waterline.js:101:22)
at Hook.hook.initialize (/usr/local/lib/node_modules/strapi/lib/configuration/hooks/waterline/index.js:166:20)
at Hook.wrapper [as initialize] (/usr/local/lib/node_modules/strapi/node_modules/lodash/index.js:3095:19)
at /usr/local/lib/node_modules/strapi/lib/configuration/hooks/index.js:54:14
at /usr/local/lib/node_modules/strapi/node_modules/async/lib/async.js:52:16
at /usr/local/lib/node_modules/strapi/node_modules/async/lib/async.js:548:17
at /usr/local/lib/node_modules/strapi/node_modules/async/lib/async.js:542:17
at _arrayEach (/usr/local/lib/node_modules/strapi/node_modules/async/lib/async.js:85:13)
at Immediate.taskComplete (/usr/local/lib/node_modules/strapi/node_modules/async/lib/async.js:541:13)
at processImmediate [as _immediateCallback] (timers.js:383:17)
warn: Installing the `sails-mongo` adapter, please wait...
/usr/local/lib/node_modules/strapi/node_modules/waterline/lib/waterline/connections/index.js:61
throw new Error(msg);
^
Should I install it manually from npm or it's a bug?
I just started to learn your framework and is not yet fully understood. π
I has made some changes in my studio account, which was i belive disabling graphql, adding api prefix and maybe something else, then back to my terminal and saw this:
info: Application's dictionnary updated
warn: You still need to restart your server to fully enjoy changes...
error: The connection `undefined` specified in the `email` model does not exist.
and then $ strapi start
don't start the application throwing
/home/shilkovsky/.npm-packages/lib/node_modules/strapi/lib/configuration/hooks/_api/index.js:168
strapi.config.routes = _.merge(strapi.config.routes, strapi.api[api.name].config.routes);
^
TypeError: Cannot read property 'routes' of undefined
at /home/shilkovsky/.npm-packages/lib/node_modules/strapi/lib/configuration/hooks/_api/index.js:168:91
at /home/shilkovsky/.npm-packages/lib/node_modules/strapi/node_modules/async/lib/async.js:52:16
at /home/shilkovsky/.npm-packages/lib/node_modules/strapi/node_modules/async/lib/async.js:550:17
at /home/shilkovsky/.npm-packages/lib/node_modules/strapi/node_modules/async/lib/async.js:544:17
at _arrayEach (/home/shilkovsky/.npm-packages/lib/node_modules/strapi/node_modules/async/lib/async.js:85:13)
at Immediate.taskComplete (/home/shilkovsky/.npm-packages/lib/node_modules/strapi/node_modules/async/lib/async.js:543:13)
at processImmediate [as _immediateCallback] (timers.js:383:17)
Is there any way I can fix this?
I have updated the version of the library to 1.5.0.
I tried to create a new application and got an error:
~/Documents/node.js/sandbox Β» strapi version
1.5.0
~/Documents/node.js/sandbox Β» strapi new MyApp2
module.js:340
throw err;
^
Error: Cannot find module 'validator'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/usr/local/lib/node_modules/strapi/node_modules/anchor/index.js:6:16)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at /usr/local/lib/node_modules/strapi/node_modules/strapi-generate-new/lib/after.js:74:15
at /usr/local/lib/node_modules/strapi/node_modules/lodash/index.js:3073:15
at baseForOwn (/usr/local/lib/node_modules/strapi/node_modules/lodash/index.js:2046:14)
at /usr/local/lib/node_modules/strapi/node_modules/lodash/index.js:3043:18
at Function.<anonymous> (/usr/local/lib/node_modules/strapi/node_modules/lodash/index.js:3346:13)
P.S. I really liked the new version of the studio.
When an API prefix is set, the admin interface breaks as the API routes it references also needs to change to accomodate the prefix.
i.e.
With prefix => /my/prefix,
/admin/config => 404 which the admin dashboard seems to be referencing directly regardless of set prefix.
Admin dashboard should use /my/prefix/admin/config => 200 OR there should be an "API prefix exclusion" feature where we define which APIs should/should not be affected by prefix.
The spawn
method doesn't work on Windows (tested on Vista 64-bit).
We should try to use exec
or find another way to self-install the database adapter and template engine.
When adding mongodb from studio, my local machine is stuck at installing for many minutes.
Then tried: npm install sails-mongo
And got following:
npm WARN locking Error: EACCES, open '/Users/ScorchsoftMini1/.npm/_locks/sails-mongo-de0dd77859cbb7e5.lock'
npm WARN locking at Error (native)
npm WARN locking /Users/ScorchsoftMini1/.npm/_locks/sails-mongo-de0dd77859cbb7e5.lock failed { [Error: EACCES, open '/Users/ScorchsoftMini1/.npm/_locks/sails-mongo-de0dd77859cbb7e5.lock']
npm WARN locking errno: -13,
npm WARN locking code: 'EACCES',
npm WARN locking path: '/Users/ScorchsoftMini1/.npm/_locks/sails-mongo-de0dd77859cbb7e5.lock' }
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "sails-mongo"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! Attempt to unlock /Users/ScorchsoftMini1/Sites/test/strapiApp/node_modules/sails-mongo, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/ScorchsoftMini1/Sites/test/strapiApp/npm-debug.log
I could not figure out how to add these validation to the model. I understood only when I read the documentation to the waterline.
I changed the type
attribute to alpha
. Now, validation work the as I wanted.
...
"attributes": {
"username": {
"minLength": 3,
"required": true,
"primaryKey": true,
"type": "alpha",
"unique": true
},
...
}
...
Maybe it makes sense to add examples of such validations to the documentation page?
When changing API prefix from Studio to "/api" and then restarting the server http://localhost:1337/admin/ doesn't work anymore because some code still is without the new API prefix.
Failing with these 404 in console:
http://localhost:1337/admin/config Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:1337/auth/logout Failed to load resource: the server responded with a status of 404 (Not Found)
When I turn off the population in the application settings.
The administrator panel ceases to function properly. In the list does not appear related models (createdBy, updatedBy, etc..)
In editing page a related models is not displayed, too.
But when I turn population back - it's worked correctly.
Now the list looks like this:
On the edit page also works.
You may want to enable forced population to administration panel?
I made a fresh install of strapi.
Here is my environment:
sylvainlap@CanHardXI:~/DEV/WORKSPACE$ cat /etc/issue
Ubuntu 14.04.3 LTS
sylvainlap@CanHardXI:~/DEV/WORKSPACE$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
sylvainlap@CanHardXI:~/DEV/WORKSPACE$ ll /usr/bin/strapi
lrwxrwxrwx 1 root root 40 oct. 3 11:14 /usr/bin/strapi -> ../lib/node_modules/strapi/bin/strapi.js*
But here is the problem:
sylvainlap@CanHardXI:~/DEV/WORKSPACE$ strapi new test
/usr/bin/env: node --harmony: Aucun fichier ou dossier de ce type
Results in an empty warning message in studio and need to restart the server and refresh studio.
Koa replaces their generator-style middleware implementation for async functions starting in version 2.0. All middlewares used by Strapi need to adapt in order to work with version 2.0. This issue shall be used to track to progress of the transition.
Please use this issue to comment if you have updated information or want to discuss the strapi's transition to the new promise-based middleware implementation
I made a fresh install of strapi (sudo npm install strapi -g), and strapi new test returns:
sylvainlap@CanHardXI:~/DEV/WORKSPACE$ strapi new test
/usr/bin/env: node --harmony: Aucun fichier ou dossier de ce type
However, my version of node is 0.12.7.
Is Strapi compatible with node v0.12 ? Or node v4 is required ?
If Node v4 is mandatory, you should add it in the README.
I just created a sample app and connected it to the dashboard. The models dont seem to update and i can't create a new model . the save bar never quit gets to the end. When i use the cli it works and sync but then can't update a atribute via the dashboard.
Hi, I tried to add mysql DB but failed installing sails-mysql module.
Strapi version = 1.5.3
npm ERR! Darwin 15.2.0
npm ERR! argv "/Users/dongseok0/.nvm/versions/node/v5.3.0/bin/node" "/Users/dongseok0/.nvm/versions/node/v5.3.0/bin/npm" "install" "sails-mysql"
npm ERR! node v5.3.0
npm ERR! npm v3.3.12
npm ERR! Cannot set property 'deep-diff' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Darwin 15.2.0
npm ERR! argv "/Users/dongseok0/.nvm/versions/node/v5.3.0/bin/node" "/Users/dongseok0/.nvm/versions/node/v5.3.0/bin/npm" "install" "sails-mysql"
npm ERR! node v5.3.0
npm ERR! npm v3.3.12
npm ERR! Cannot set property 'prompt' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Darwin 15.2.0
npm ERR! argv "/Users/dongseok0/.nvm/versions/node/v5.3.0/bin/node" "/Users/dongseok0/.nvm/versions/node/v5.3.0/bin/npm" "install" "sails-mysql"
npm ERR! node v5.3.0
npm ERR! npm v3.3.12
npm ERR! Cannot set property 'waterline-criteria' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Darwin 15.2.0
npm ERR! argv "/Users/dongseok0/.nvm/versions/node/v5.3.0/bin/node" "/Users/dongseok0/.nvm/versions/node/v5.3.0/bin/npm" "install" "sails-mysql"
npm ERR! node v5.3.0
npm ERR! npm v3.3.12
npm ERR! Cannot set property 'waterline-schema' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/dongseok0/journal/npm-debug.log
Hi,
First of all: great job! I've been exploring Strapi for the past few days, and so far I'm very impressed.
I've been using it to prototype an API, and it was super easy to set up and plug in to my existing database. However I just saw in the documentation, that youre planning on switching to sequelize - are you planning on removing support for mongodb?
Happy new year,
Allan
How to change Permanent DB
for User
, Role
, Permission
models? I can not find it in the documentation. I would be grateful if you tell me where to look.
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.