This repository contains examples on how to use Ext.Direct in conjunction with node.js server side using MySQL
ExtJS 5.1.0 (Check docs in http://docs.sencha.com/extjs/5.1.0/)
Node.js server of version 0.12.2+ and Express 4.x
(check your NodeJS version using node -v
if its not 0.12.* use this tool https://github.com/tj/n, get it working by running sudo npm install -g n
then running n 0.12.2
that will download and switch to NodeJS 0.12.2)
-
- Clone this repo
-
- Create a local DB called Demo and load ./server/mysql/squema_mysql.sql
-
- go to ./server/mysql and run
npm install
then runsudo npm install -g nodemon
and thennodemon server.js
- go to ./server/mysql and run
-
- go to your browser to http://localhost:3000
-
- Go to ./client/extjs
-
- Open htis folder with you favorite text editor (Subl, Atom, WebStorm) as a project.
-
- Edit files only inside ./client/extjs/app
-
- After editing refresh your browser to see the changes.
-
- Install Sencha CMD 5.1.2.52 from http://cdn.sencha.com/cmd/5.1.2.52/SenchaCmd-5.1.2.52-osx.app.zip (Newest versions of Sencha CMD wont work and will break codebase)
-
- Go to ./client/extjs
-
- run
sencha app build
- run
-
- It will generate ./client/extjs/build/Demo