https://github.com/mbejda/code-sample
Node.js Code Sample
https://github.com/mbejda/code-sample
Last synced: about 1 year ago
JSON representation
Node.js Code Sample
- Host: GitHub
- URL: https://github.com/mbejda/code-sample
- Owner: mbejda
- Created: 2019-08-30T04:41:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T22:23:34.000Z (over 3 years ago)
- Last Synced: 2023-08-04T02:01:01.883Z (almost 3 years ago)
- Language: JavaScript
- Size: 254 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
I uploaded sample code I'm very proud of.
I had to take it out of a larger personal project called "rlty.app" and make a few changes.
## What this code does :
This code is part of a larger system and performs the following functions:
It creates a service and API endpoint called "project(s)".
**Launches a CloudFormation stack that:**
- Creates a new project bucket in S3
- Creates a new Route53 CNAME record and gives it an S3 bucket alias.
## Why this code makes me happy:
There are 2 important bits here that I would like to highlight :
**tests/integration**
https://github.com/mbejda/code-sample/tree/master/services/projects/tests/integration
**tests/unit**
https://github.com/mbejda/code-sample/tree/master/services/projects/tests/unit
As I mentioned earlier, this code is part of a larger system which is made out of many moving parts. Integration tests and unit tests ensure progress can be made on a service level without creating a need to test the whole system.
*Unit tests* test how well the code works while *integration tests* test how well the code integrates with other services/parts.
Both save me a lot of time debugging , testing and developing, allowing me to spend more time on other things. That is why this code makes me happy.