topcoderinc / topcoder-starterpack_bluemixnode Goto Github PK
View Code? Open in Web Editor NEWQuick start boilerplate for a Node API Deployable to Bluemix
Quick start boilerplate for a Node API Deployable to Bluemix
After writing the following line in windows command prompt and executing it:
npm run start
I get the following message:
'better-npm-run' is not recognized as an internal or external command, operable program or batch file. The latest version of node and babel are installed.
command line:-
Uploading droplet, build artifacts cache...
Uploading build artifacts cache...
Uploading droplet...
Uploaded build artifacts cache (3.6M)
Uploaded droplet (18.7M)
Uploading complete
Destroying container
Successfully destroyed container
Log ( cf logs --recent)
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR /home/vcap/app/src/app.js:5
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR import express from 'express';
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR ^^^^^^
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR SyntaxError: Unexpected token import
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR at createScript (vm.js:56:10)
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR at Object.runInThisContext (vm.js:97:10)
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR at Module._compile (module.js:542:28)
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR at loader (/home/vcap/app/node_modules/babel-register/lib/node.js:144:5)
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR at Object.require.extensions.(anonymous function) [as .js] (/home/vcap/app/node_modules/babel-register/lib/node.js:154:7)
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR at Module.load (module.js:487:32)
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR at tryModuleLoad (module.js:446:12)
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR at Function.Module._load (module.js:438:3)
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR at Function.Module.runMain (module.js:604:10)
2017-07-08T10:21:28.03+0530 [APP/PROC/WEB/0] ERR at Object. (/home/vcap/app/node_modules/babel-cli/lib/_babel-node.js:154:22)
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! Linux 4.4.0-75-generic
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! node v6.10.2
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! npm v3.10.10
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! code ELIFECYCLE
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! [email protected] start: better-npm-run start
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! Exit status 1
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR!
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! Failed at the [email protected] start script 'better-npm-run start'.
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! Make sure you have the latest version of node.js and npm installed.
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! If you do, this is most likely a problem with the bluemix-starter package,
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! not with npm itself.
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! Tell the author that this fails on your system:
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! better-npm-run start
2017-07-08T10:21:28.07+0530 [APP/PROC/WEB/0] ERR npm ERR! You can get information on how to open an issue for this project with:
2017-07-08T10:21:28.08+0530 [APP/PROC/WEB/0] ERR npm ERR! npm bugs bluemix-starter
2017-07-08T10:21:28.08+0530 [APP/PROC/WEB/0] ERR npm ERR! Or if that isn't available, you can get their info via:
2017-07-08T10:21:28.08+0530 [APP/PROC/WEB/0] ERR npm ERR! npm owner ls bluemix-starter
2017-07-08T10:21:28.08+0530 [APP/PROC/WEB/0] ERR npm ERR! There is likely additional logging output above.
2017-07-08T10:21:28.08+0530 [APP/PROC/WEB/0] ERR npm ERR! Please include the following file with any support request:
2017-07-08T10:21:28.08+0530 [APP/PROC/WEB/0] ERR npm ERR! /home/vcap/app/npm-debug.log
ref link:-
https://stackoverflow.com/questions/39436322/node-js-syntaxerror-unexpected-token-import/39436379.
In this challenge, we'll be adding to the base services provided by this REST API. Implementing these services will serve two causes:
/me
secure endpoint
Why I cann't access the live demo?
404 Not Found: Requested route ('sky-bluemix-starter.eu-gb.mybluemix.net') does not exist.
The goal of this challenge is to create an easily usable, well documented shell project to build and deploy Node projects on IBM Bluemix.
You are welcome to start by cloning this repository:
https://github.com/topcoderinc/Topcoder-StarterPack_Node-Backend
If you start from that starter pack, please clear out any modules as we’ll be using Bluemix modules in subsequent challenges. If you prefer to start fresh, you can, but be sure to include all applicable items listed below.
Note: you will need to set up a Bluemix account to complete this challenge. You can do the 30 day trial for now. For subsequent Bluemix challenges, we will have trial codes.
Any other piece you think would be helpful, please ask in the forum.
See the forums for documentation on why we're doing this, what the philosophy is, and how to approach a solution.
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.