I've kept these sample apps for a while now, and it's time to make them public! And, also improve them if I even find the time.
Since a lot of the REST API concepts are very similar, especially in the NodeJS way (e.g. Express, Restify, HapiJS, etc.), I figured that I'll make templates for each REST API that I personally like doing to prevent re-creating the wheel, look back and see what I can improve as years go by...The only difference for each template is that they're interfacing different types of Databases.
In this one repository, there are 4 sample apps. All of them are in RestifyJS for the NodeJS Environment. But there are 4 different apps to simulate the different databases that I have experiences working with.
The API was hosted on an EC2 Tier while the MySQL was hosted on a Amazon RDS.
The API was hosted on an EC2 Tier while the MSSQL was hosted in an Azure DB Instance specifically for Microsoft's SQL Server.
The API was hosted on an EC2 Tier and connected to a MongoDB instance on mLab.com. The mLab.com DBaaS is now obselete, and this project has been replaced by the MoongoDB Atlas project.
This version replaces the mLab
version because mLab
is now obsolete. I transferred to MongoDB Atlas as my new playground for MongoDB DBaaS. The updates for this project will reflect the the other versions with MySQL and MSSQL in due time.
All 4 of the REST API apps are made in RestifyJS for the NodeJS Envinroment.
On the EC2 Container, PM2 was used to keep the apps alive both in Production and Development.
- Linux (the Amazon OS version, and the free tier one!)
- NodeJS (version 8, at the time, I believe)
- PM2
- Add Unit Tests - I might use Jest instead of Mocha and Chai.
- Make TypeScript versions(?)
- Add instructions in each app to get started, and make AWS instances.
- Microservices
- DevOps
- JSON Web Token - Added to the REST API with MongoDB Atlas. Will integrate with the other versions soon.