Skip to content

JosephmBassey/simple-web-app-with-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Microservice

  1. cd to the project directory
  2. Set up .env variables using .env.example
  3. To install dependencies run npm install on your terminal
  4. To start the server run npm run dev on your terminal if mongodb and nodejs are already install or using docker
    run docker build -t dockerHubUsername/apiservice . on your terminal to build the docker image,

To start your container run docker run -p 9001:9001 dockerHubUsername/apiservice

PS. You can also use PM2 to start the service by running pm2 restart ecosystem.config.js

About

A simple Express app, that runs on docker,

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published