Coder Social home page Coder Social logo

brandiqa / sp-mall-park-wrld Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 6.0 351 KB

A WRLD3D js app demonstrating how to implement POI cards and displaying Parking slots availability data

License: MIT License

JavaScript 56.99% CSS 3.77% HTML 39.24%

sp-mall-park-wrld's Introduction

How to Create a Mall Map with Real-time Data Using WRLD3D

This is a WRLD3D Javascript app demonstrating how to implement real-time data for a mall and parking. This project was built using NodeJS 8 LTS.

Installation

Simply clone the project and install its dependencies.

git clone [email protected]:brandiqa/sp-mall-park-wrld.git
npm install

Next, install the following global dependencies:

npm install -g parcel-bundler json-server

You'll need an API key from https://www.wrld3d.com/. Duplicate env.example.js file in the project root and rename it to env.js. Paste in your API key there.

How to run

This project is composed of a dummy api and 2 demos:

1. JSON API Server

The JSON API server is required to run first as it provides real-time (dummy) data for both demos. The data used by the server is located at data/db.json. To start the API server just execute:

npm run json

# Alternative
json-server --watch data/db.json

2. Mall Map Demo

To run the mall map demo, just execute the following after the JSON server is up and running:

# Launch mall map demo
npm start

# OR you can run the command directly:
parcel src/index.html

You'll need to open 127.0.0.1:1234 in your favorite browser to view the demo.

3. Parking Areas Demo

To run the parking areas demo, make sure that mall map demo is not running and that port 1234 is free. This demo requires the JSON server, hence ensure that its still running. You can start the parking area demo by executing:

# Launching parking areas demo
parcel src/parking.html

You'll need to open or refresh 127.0.0.1:1234 in your favorite browser to view the demo.

ESLint Configuration(Optional)

If you would like to enable ESLinting for this project in VSCode, simply install the following packages globally:

  "devDependencies": {
    "eslint": "^4.18.2",
    "eslint-config-airbnb-base": "^12.1.0",
    "eslint-plugin-import": "^2.9.0"
  }

License

The MIT License (MIT) Copyright (c)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

sp-mall-park-wrld's People

Contributors

brandiqa avatar

Stargazers

 avatar  avatar  avatar Martin Bomar avatar KimSiJin avatar Ai avatar Muhammad S. avatar Ben avatar 0x457 avatar Claude Janssen avatar Nick LaDart avatar Cornellius Ngondo avatar

Watchers

James Cloos avatar  avatar

sp-mall-park-wrld's Issues

npm start Error

below error occured when I was "npm start" command excute

How can I fix it?

=========================
$npm start

[email protected] start
parcel src/index.html

sh: 1: parcel: not found
npm ERR! code 127
npm ERR! path /home/anaconda/sp-mall-park-wrld-master
npm ERR! command failed
npm ERR! command sh -c parcel src/index.html

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-02-09T09_50_41_415Z-debug.log

I'm gonna test this app on the docker environment

How can I fix the port ?

1234 and 3000
and this app need third port variable XXXXX

How can I fix bottom variable third port ?

I used docker port forwarding environment

I'm start this app but show only black screen on the chrome.

I heard sure working this app with only 1234 port and open internet.
and current that status.

How can I fix it?

Thank you

image

npm ERROR

I'm gonna npm start but occured below error
How can I fix it?
please help me

Thank you

(xxx) root@xxxx:/home/anacoxxnda/sp-mall-park-wrld-master# npm start

[email protected] start /home/anaconda/sp-mall-park-wrld-master
parcel src/index.html

sh: 1: parcel: not found

npm ERR! Linux 5.4.0-65-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] start: parcel src/index.html
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] start script 'parcel src/index.html'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mallmap package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! parcel src/index.html
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mallmap
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls mallmap
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/anaconda/sp-mall-park-wrld-master/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.