Coder Social home page Coder Social logo

aserg-ufmg / jscity Goto Github PK

View Code? Open in Web Editor NEW
1.4K 1.4K 91.0 19.73 MB

Visualizing JavaScript source code as navigable 3D cities

License: GNU General Public License v2.0

CSS 27.55% HTML 0.65% JavaScript 71.65% Shell 0.15%
code-city data-visualization javascript-tools software-visualization

jscity's People

Contributors

csterritt avatar demartins avatar elmlea-young avatar landonwilkins avatar malilovick avatar mtov avatar nighto avatar tannermares 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

jscity's Issues

might want to change default port so its above 1024

On linux any port < 1024 is privileged so requires root to execute the process.
If you change your default port as defined in your file JSCity/js/config.json :

{
"porta": 800
}

to something reasonable like 8888
then we do not need to execute nodejs as root.
As is when I launch your server as a normal user I get ERROR

cd JSCity/js
node server.js

Server Started.
events.js:141
throw er; // Unhandled 'error' event
^

Error: listen EACCES 0.0.0.0:800
at Object.exports._errnoException (util.js:837:11)
at exports._exceptionWithHostPort (util.js:860:20)
at Server._listen2 (net.js:1218:19)
at listen (net.js:1267:10)
at Server.listen (net.js:1363:5)
at Object. (/home/stens/other_src/JSCity/js/server.js:280:9)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)

which is fixed by using a port greater than 1024

cool project - good luck !!!

Does this not work with import statements?

seeing many errors like

admin/projects/ngModule.js { loc: { start: { line: 1, column: 0 }, end: { line: 9, column: 2 } },
  type: 'Program',
  body: 
   [ { loc: [Object],
       type: 'ImportDeclaration',
       specifiers: [Object],
       source: [Object] },
     { loc: [Object],
       type: 'ImportDeclaration',
       specifiers: [Object],
       source: [Object] },
     { loc: [Object],
       type: 'ImportDeclaration',
       specifiers: [Object],
       source: [Object] },
     { loc: [Object],
       type: 'ImportDeclaration',
       specifiers: [Object],
       source: [Object] },
     { loc: [Object],
       type: 'ExpressionStatement',
       expression: [Object] } ],
  errors: 
   [ { [Error: Line 1: Unexpected token]
       index: 0,
       lineNumber: 1,
       column: 1,
       description: 'Unexpected token' },
     { [Error: Line 2: Unexpected token]
       index: 59,
       lineNumber: 2,
       column: 60,
       description: 'Unexpected token' },
     { [Error: Line 3: Unexpected token]
       index: 114,
       lineNumber: 3,
       column: 56,
       description: 'Unexpected token' },
     { [Error: Line 4: Unexpected token]
       index: 166,
       lineNumber: 4,
       column: 53,
       description: 'Unexpected token' } ] }

Before I go hunting, does that mean anything to you?

Some value can't be NULL

Good job!

I got the code and took a try just now, and found an error:

INSERT INTO `tb_district`(`name`, `color`, `tooltip`, `city_id`) VALUES ('ai', NULL, 'Folder: ai', 3)
Failed to insert data in the database . Undoing transaction and ending the process.

The reason is: [Err] 1048 - Column 'color' cannot be null

Internal Error. {I can not connect to mysql}

I can see my City in the database, but localhost:8888 is not displaying any cities: Select the System just displays "No city was found" (not even the default one.

If I go to the table tb_city, I see both the default and my city. When I enter the url localhost:8888/api/cities into PostMan I get the above title.

In the browser console I get:
OST http://localhost:8888/api/cities 500 (Internal Server Error)
send @ mootools-yui-compressed.js:491
i.extend.$owner @ mootools-yui-compressed.js:127
listCities @ interface.js:225
i.extend.$owner @ mootools-yui-compressed.js:127
initialize @ interface.js:169
i.extend.$owner @ mootools-yui-compressed.js:127
(anonymous) @ mootools-yui-compressed.js:122
(anonymous) @ main.js:88
(anonymous) @ mootools-yui-compressed.js:375
(anonymous) @ mootools-yui-compressed.js:17
each @ mootools-yui-compressed.js:24
fireEvent @ mootools-yui-compressed.js:374
g @ mootools-yui-compressed.js:520

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.