node-api-boilerplate | Clean Architecture inspired boilerplate for Node web APIs | Architecture library
kandi X-RAY | node-api-boilerplate Summary
kandi X-RAY | node-api-boilerplate Summary
An opinionated boilerplate for Node web APIs focused on separation of concerns and scalability.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-api-boilerplate
node-api-boilerplate Key Features
node-api-boilerplate Examples and Code Snippets
Community Discussions
Trending Discussions on node-api-boilerplate
QUESTION
Im building a node api boilerplate with docker, babel, istanbul, pm2, eslint and other features. My project works fine in dev mode with nodemon and works fine in test mode with mocha too. However when I run the project in prod mode with pm2 the docker ports don't bind.
The full project can be find here https://github.com/apandrade/node-api-boilerplate
Docker ps result after run in production mode
...ANSWER
Answered 2018-May-15 at 11:12After a few days in search of the solution, I discovery that do not exists any problem, what happens is that to run my project I was run docker-compose run --rm
and the docker compose reference is clear
the docker-compose run command does not create any of the ports specified in the service configuration. This prevents port collisions with already-open ports. If you do want the service’s ports to be created and mapped to the host, specify the --service-ports flag:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-api-boilerplate
Clone the repository with git clone --depth=1 https://github.com/talyssonoc/node-api-boilerplate
Setup the database on config/database.js (there's an example file there to be used with PostgreSQL 😉 )
Install the dependencies with yarn (click here if you don't have Yarn installed)
Create the development and test databases you have setup on config/database.js
Run the database migrations with npm run sequelize db:migrate
Add some seed data to the development database with npm run sequelize db:seed:all
Run the application in development mode with npm run dev
Access http://localhost:3000/api/users and you're ready to go!
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page