Giter VIP home page Giter VIP logo

strapi / strapi Goto Github PK

View Code? Open in Web Editor NEW
59.6K 664.0 7.4K 459.56 MB

πŸš€ 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

JavaScript 24.44% HTML 0.06% Shell 0.02% Handlebars 0.10% TypeScript 74.62% MDX 0.77%
strapi nodejs api dashboard javascript graphql rest koa koa2 cms

strapi's Introduction

Strapi logo Strapi logo

Open-source headless CMS, self-hosted or Cloud you’re in control.

The leading open-source headless CMS, 100% JavaScript/TypeScript, flexible and fully customizable.

Cloud Β· Try live demo Β· Strapi 5 (coming soon)


NPM Version Tests Strapi on Discord Strapi Nightly Release Build Status


Administration panel


Strapi Community Edition is a free and open-source headless CMS enabling you to manage any content, anywhere.

  • Self-hosted or Cloud: You can host and scale Strapi projects the way you want. You can save time by deploying to Strapi Cloud or deploy to the hosting platform you want**: AWS, Azure, Google Cloud, DigitalOcean.
  • Modern Admin Pane: Elegant, entirely customizable and a fully extensible admin panel.
  • Multi-database support: You can choose the database you prefer: PostgreSQL, MySQL, MariaDB, and SQLite.
  • Customizable: You can quickly build your logic by fully customizing APIs, routes, or plugins to fit your needs perfectly.
  • Blazing Fast and Robust: Built on top of Node.js and TypeScript, Strapi delivers reliable and solid performance.
  • Front-end Agnostic: Use any front-end framework (React, Next.js, Vue, Angular, etc.), mobile apps or even IoT.
  • Secure by default: Reusable policies, CORS, CSP, P3P, Xframe, XSS, and more.
  • Powerful CLI: Scaffold projects and APIs on the fly.

Getting Started

Read the Getting Started tutorial or follow the steps below:

⏳ Installation

Install Strapi with this Quickstart command to create a Strapi project instantly:

yarn create strapi-app my-project --quickstart

or

  • (Use npm/npx to install the Strapi project.)
npx create-strapi-app my-project --quickstart

This command generates a brand new project with the default features (authentication, permissions, content management, content type builder & file upload). The Quickstart command installs Strapi using a SQLite database which is used for prototyping in development.

Enjoy πŸŽ‰

πŸ– Requirements

Complete installation requirements can be found in the documentation under Installation Requirements.

Supported operating systems:

  • Ubuntu LTS/Debian 9.x
  • CentOS/RHEL 8
  • macOS Mojave
  • Windows 10
  • Docker

(Please note that Strapi may work on other operating systems, but these are not tested nor officially supported at this time.)

Node:

Strapi only supports maintenance and LTS versions of Node.js. Please refer to the Node.js release schedule for more information. NPM versions installed by default with Node.js are supported. Generally it's recommended to use yarn over npm where possible.

Strapi Version Recommended Minimum
4.14.5 and up 20.x 18.x
4.11.0 and up 18.x 16.x
4.3.9 to 4.10.x 18.x 14.x
4.0.x to 4.3.8 16.x 14.x

Database:

Database Recommended Minimum
MySQL 8.0 5.7.8
MariaDB 10.6 10.3
PostgreSQL 14.0 11.0
SQLite 3 3

We recommend always using the latest version of Strapi stable to start your new projects.

Features

  • Content Types Builder: Build the most flexible publishing experience for your content managers, by giving them the freedom to create any page on the go with fields, components and Dynamic Zones.
  • Media Library: Upload your images, videos, audio or documents to the media library. Easily find the right asset, edit and reuse it.
  • Internationalization: The Internationalization (i18n) plugin allows Strapi users to create, manage and distribute localized content in different languages, called "locales"
  • Role Based Access Control: Create an unlimited number of custom roles and permissions for admin and end users.
  • GraphQL or REST: Consume the API using REST or GraphQL

You can unlock additional features such as SSO, Audit Logs, Review Workflows in Strapi Cloud or Strapi Enterprise.

See more on our website.

Contributing

Please read our Contributing Guide before submitting a Pull Request to the project.

Community support

For general help using Strapi, please refer to the official Strapi documentation. For additional help, you can use one of these channels to ask a question:

Migration

Follow our migration guides on the documentation to keep your projects up-to-date.

Roadmap

Check out our roadmap to get informed of the latest features released and the upcoming ones. You may also give us insights and vote for a specific feature.

Documentation

See our dedicated repository for the Strapi documentation, or view our documentation live:

Try live demo

See for yourself what's under the hood by getting access to a hosted Strapi project with sample data.

License

See the LICENSE file for licensing information.

strapi's People

Contributors

abdonrd avatar alexandrebodin avatar aurelsicoko avatar bassel17 avatar christiancp100 avatar convly avatar dependabot[bot] avatar derrickmehaffy avatar elhebert avatar feranchz avatar gitstart avatar gu-stav avatar hichamelbsi avatar innerdvations avatar ivanthepleasant avatar jhoward1994 avatar joshuaellis avatar lauriejim avatar marc-roig avatar markkaylor avatar nathan-pichon avatar petersg83 avatar pierreburgy avatar remidej avatar ronronscelestes avatar simotae14 avatar smontlouis avatar soupette avatar vincentbpro avatar virginieky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

strapi's Issues

Node v4 required ?

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.

ORM roadmap

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

Not able to start the project

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?

Error installing sails-mongo on Windows 8.1

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).

changing to mongodb storage using the dashboard fails on install of the adapter.

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:

  • in the dashboard, database section, have the default 2 entries either be permanent, unchangeable and undeletable, or add a button that will "create default database" entries.
  • allow access to those areas while not synced and queue the changes for the next sync. If I was unable to fix the problem with the database, and the local server wouldn't start, I wouldn't be able to delete or change the db option.

sails-mongo not installing

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

Error: Cannot find module 'validator' - Strapi 1.5.0

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.

Don't allow creating api's which don't match the pattern

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.

`strapi generate api` without further arguments leads to error

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 ...]`');
  }

Admin panel is not working correctly when population is disabled.

When I turn off the population in the application settings.

2016-02-01 1 40 54

The administrator panel ceases to function properly. In the list does not appear related models (createdBy, updatedBy, etc..)

2016-02-01 1 41 57

In editing page a related models is not displayed, too.

2016-02-01 1 44 47

But when I turn population back - it's worked correctly.

2016-02-01 1 46 09

Now the list looks like this:

2016-02-01 1 46 28

On the edit page also works.

2016-02-01 1 48 03

You may want to enable forced population to administration panel?

Unique way to create, update etc

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?

Add autocomplete=off attribute to the studio

When I go to database settings page in studio, my browser automatically fill fields "username" and "password". Maybe you can add attribute autocomplete="off" in these fields?

2016-01-31 22 35 48

Browser: Google Chrome, Mac OS.

Add example validations to documentation

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?

dashboard project names could be confusing

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.

grant package

/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.

Graphql queries work incorrect

It seems graphql does not work properly.

Here is a list of articles in the my admin page:

2016-01-31 17 47 19

When I'm trying to get a list of articles, author of the article is not included in all articles.

2016-01-31 17 51 55

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

Default values

Feature request; making it possible to set default value in studio for a model field like boolean etc.

Error: Unknown adapter "mongo"

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. πŸ‘

#!/usr/bin/env node --harmony

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

Support JSON API

Hello.

Do you plan to add support JSON API? Support JSON API important Ember.js developers and other frameworks.

Dynamic roles

Is it possible to create dynamic roles like "is contributor"?

For instance setting admins and moderators for specific a specific model and its relations.

improve documentation site

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.

Middleware-Status for Koa 2.0 transition

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

NOTES

  • koa-convert could be used to convert most middleware from generator to promise-based middleware and vice versa
  • koa tracks its status here

General async function support

  • V8 includes native async-functions - v8 Issue #4483
  • node.js supports native async-functions

Middleware support

Models dont save or update?

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.

http https

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.

What about GraphiQL?

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

Changing API prefix, admin not working anymore

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)

Documentation is difficult to read

The ultralight font in a slightly small size on white background makes the docs difficult to read. I would suggest normal font weight (currently set to 300, 500 is normal) and a bit darker color (currently #777, would suggest #444). You might even consider a slight background color like #f4f4f4.

Documentation: Logging in

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?

Setting API route prefix breaks admin

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.

How to change user route to /user/:username?

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 :)

Uploading Files Thru Admin

am I missing something or is it not implemented yet? Also is there an actual working link to the documentation?

strapi local dev server crash after strapi start

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?

Cannot connect to dashboard.

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.

sails-mysql install failed

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.