This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: node:latest # if this isn't here, then | |
| # gitlab runners/ci thing doesn't know it exists | |
| # basically this is like a docker image | |
| # and you need to add all the depenencies | |
| # required for this shit to run! | |
| # here you define the stages | |
| # build, test are stages | |
| # once this is committed in the gitlab interface | |
| # you'll see the stages in the pipeline running |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: node:latest # if this isn't here, then | |
| # gitlab runners/ci thing doesn't know it exists | |
| # basically this is like a docker image | |
| # and you need to add all the depenencies | |
| # required for this shit to run! | |
| # here you define the stages | |
| # build, test are stages | |
| # once this is committed in the gitlab interface | |
| # you'll see the stages in the pipeline running |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Specify which docker image to use | |
| # We want Node because our app is using Node | |
| # https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-an-image | |
| image: node:latest | |
| # Set the stages for the pipeline | |
| # In this configuration, there are 3 stages for our pipeline: build, test, deploy | |
| # If we want 2 stages we would put: build, deploy | |
| # https://docs.gitlab.com/ee/ci/yaml/#stages | |
| stages: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Specify which docker image to use | |
| # We want Node because our app is using Node | |
| # https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-an-image | |
| image: node:latest | |
| # Set the stages for the pipeline | |
| # In this configuration, there are 3 stages for our pipeline: build, test, deploy | |
| # If we want 2 stages we would put: build, deploy | |
| # https://docs.gitlab.com/ee/ci/yaml/#stages | |
| stages: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const startServer = require("./startServer"); | |
| const port = process.env.PORT || 4000; | |
| startServer().listen(port, () => { | |
| console.log("server started on port 4000"); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require("express"); | |
| var router = express.Router(); | |
| const startServer = () => { | |
| console.log("Starting server..."); | |
| const app = express(); | |
| router.get("/", (req, res) => { | |
| res.json({ | |
| name: "Steve", |
NewerOlder