Skip to content

tempnowziet/express-ziet-now-semaphore-ci

Repository files navigation

Semaphore demo CI/CD pipeline using JavaScript (Node.js, TypeScript, Nest.js, React)

Example application and CI/CD pipeline showing how to run a JavaScript Express.js project on Semaphore 2.0. Project consists of a Express.js server. Code is written in JavaScript.

CI/CD on Semaphore

  1. Fork this repository and use it to create a project.

  2. Go to your Now dashboard, and add a token. You should see a slightly hidden field in the middle of the page that says "Create a new token by entering its name..." I'd recommend calling it something obvious like zeit-now-semaphoreci-yourproject.

  3. Take the token, and create an Secret and add an Environment Variable in your project's configuration in SemaphoreCI. This sample repo calls the Secret now and Environment Variable ZEIT_TOKEN, CI pipeline on Semaphore so I'd suggest doing the same - if you change it, be aware that you'll need to change references to this token name in the sample files.

The CI pipeline will look like this:

CI pipeline on Semaphore

The example pipeline contains 3 blocks:

  • Install dependencies
    • installs and caches all npm dependencies
  • Run tests
  • Deply

Local project setup

Installation

$ npm install

Running the app

$ npm start

Test

$ npm test

License

Copyright (c) 2019 Rendered Text

Distributed under the MIT License. See the file LICENSE.md.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published