This is meant to be a quickstart/inspirational boiler plate to get your client application and server application hosted on S3 and Heroku.
With a few tweaks this starting point can be enhanced to accommodate:
- Multiple Single Page Application entry points
- Bootstrap or other client side vendor libraries
- Koa instead of Express 4.0
- PostgreSQL instead of Mongo
- Multiple environments
Not every solution requires this much
What this solution is good for:
- A single Git repo
- Full stack development
- JavaScript on the Frontend and Backend
- Rapid local development environment
- A project with little to no dedicated DevOps personnel
- A set of defined/expected environments (example: dev, uat, demo, prod)
What this solution is not good for:
- No API or Server side code necessary
- Just have a client app? Use API Gateway
- Massive and Complex environment architectures
- Install Node 0. Node.js information 0. npm is Node's companion package manager
- Install Git
- Install Mongoose and setup Local DB
npm install mongodb
- Clone the repo and checkout develop
git clone https://github.com/tonybergeron/didactic-disco.git
- Download/Update Dependencies
npm install
- Start Mongo Server (mongod)
mongod
- Build and serve application locally with npm
npm start
- Navigate to http://localhost:3001
Here is some more documentation that will help guide you through how each area of the devops process is setup and what it is doing.