Skip to content

rehabHassanein/semaphore-demo-javascript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 project on Semaphore 2.0. Project consists of a Node.js server based on Nest.js, and a React client. Code is written in TypeScript.

CI/CD on Semaphore

Fork this repository and use it to create a project.

The CI pipeline will look like this:

CI pipeline on Semaphore

The example pipeline contains 4 blocks:

  • Install Dependencies
    • installs and caches all npm dependencies
  • Run Lint
    • Runs tslint to check project files codestyle
  • Run Unit Tests
    • Runs Unit Tests
  • Run E2E Tests
    • Runs E2E tests through cypress on client.
    • Runs E2E tests through jest on server.

Local project setup

This project requires a PostgreSQL database. If you don't have one you can launch a Docker container to have one.

Configuration

$ cp .sample.env .env

Launch db

$ docker-compose up

Stop db

$ docker-compose down

Configure and launch server

Steps described in server README

Configure and launch client

Steps described in client README

License

Copyright (c) 2019 Rendered Text

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

About

A Semaphore demo CI/CD pipeline using Node.js, TypeScript, Nest.js and React.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.5%
  • JavaScript 4.1%
  • HTML 2.4%
  • Other 1.0%