aserg-ufmg / jscity Goto Github PK
View Code? Open in Web Editor NEWVisualizing JavaScript source code as navigable 3D cities
License: GNU General Public License v2.0
Visualizing JavaScript source code as navigable 3D cities
License: GNU General Public License v2.0
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 !!!
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?
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
:-) Seems to not include any real code.
Needs the code...
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
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.