- Creating custom model types
- Add public static web pages
- Connecting to MongoDB
- Connecting to MySQL ( MariaDB )
Last active
January 2, 2016 03:09
-
-
Save mschmulen/8241887 to your computer and use it in GitHub Desktop.
Customizing StrongLoop
git clone https://gist.github.com/8241887.git Customizing-StrongLoop
- Create a LoopBack App
slc lb project myApp
cd
in your Appcd myApp
- Copy the static pages into
myApp\public
folder:
- Using curl
curl -O http://startbootstrap.com/downloads/stylish-portfolio.zip
unzip stylish-portfolio.zip && mv stylish-portfolio public && mv public/stylish-portfolio.html public/index.html
- comment out the default status uptime as the root handle
/
by changingapp.get('/', loopback.status());
to//app.get('/', loopback.status());
- open http://localhost:3000/
##Misc Notes
- Sometimes the app.js architecture changes, if the above does not work check in the
/myApp/moduls/app/index.js
for
app.get('/', function getStatus(req, res, next) {
res.send({
started: started,
uptime: (Date.now() - Number(started)) / 1000
});
});
and change it to /public
- Using wget
wget -N http://startbootstrap.com/downloads/stylish-portfolio.zip
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment