Skip to content

crchauffe/mock-auth-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mock-auth-service


Overview

This simple program does the following:

  • Prints "Hello World"

Main entry point

See file located at: src/main.ts.


Project structure:

  • src - contains source code (Typescript)
  • dist - after building, contains transpiled Javascript

Npm helper scripts

Below are descriptions of the helper scripts found in package.json.


npm run build

Runs npm tsc to build the code under src and and places the transpiled Javascript into the dist directory.


npm run start

Runs node dist/main.js to execute the mock-auth-service


npm run dev

Runs npm run build && npm run start to build then execute the mock-auth-service


npm run build-container

Runs docker build -t mock-auth-service . to create a mock-auth-service image based on the Dockerfile.


npm run start-container

Runs docker run mock-auth-service to create a container based on the mock-auth-service image. The container is then started.


npm run dev-container

Runs npm run build-container && npm run start-container to perform the same processing defined by npm run build-contianer and npm run start-container.


npm run stop-container

Runs docker stop mock-auth-service to stop the running mock-auth-service container.


npm run clean-container

Runs docker container prune --force && docker image prune --force to delete all stopped containers and images not associated with containers.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published