This post is about setting up LoopBack to always use HTTPS and SSL certificates because that it’s important to have a secure connection when you have registration and login for an app.
I’m building a mobile app that calls a REST api from a NodeJS server. There are a number of frameworks to use:
I decided to use LoopBack based on what I read here. Setup is quite fast and it has a built in User model with authentication and authorization. This post describes the steps I took to do it.
I’m new to Node.js and this blog post is to help me remember what I did as I learn it. Hopefully, it will also help others who are reading this. Comments and suggestions are welcome.
I have a Rails background so I’m used to having nice terminal commands like Rail’s
rake command. To create a database and populate it, I would use a terminal command like:
For Node.js, I wanted a command like
node seed.js to
- Connect to MongoDB
- Drop a specific DB
- Recreate the DB
- Insert documents into DB
This is my first time setting up a blog using Octopress/Jekyll and hosting it on Github Pages. I wanted to document the process so I could remember it and also share it with others. Any comments or corrections are welcome.