Public | Automated Build

Last pushed: 2 years ago
Short Description
Node with MongoDB, back-end for Sencha Ext JS 6 client:
Full Description

Node JS, Express and MongoDB - user back-end

This is an example of a Node.js user application, with Express, MongoDb and Passport user authentication.The code can be found on Github:,

This code provides a REST webservice. It becomes handy, when using a client application. For this example, I used this Ext JS 6 client app:

How to use this image?

$ docker pull savelee/docker-node-server
$ docker run --name nodeapp -p 9000:9000 -d savelee/docker-node-server

Configuring this application locally.

This application doesn't do much without a proper back-end.
We can serve this with a valid Node.js, Express, MongoDB server.

The code can be found here:
Run with nodemon app.js

To create an admin account, use Curl or Postman:

$ curl -H "Content-Type: application/json" -X POST -d '{ "username" : "admin", "password": "admin" }'

We will use this client:

You will need to edit the app/utils/Contants.js file to:

Ext.define('Client.utils.Constants', {
singleton: true,

'LIVE_URL': window.location.protocol + "//" + + ':9000',


Then you can start the Ext JS app locally with:
sencha app watch
Open your browser, and browse to:, and login with your admin account.

Configuring this application with Docker Compose

First make an Ext JS build:
sencha app build

Create a docker-compose.yml

build: ./client
restart: always
- "80:80"
- server
build: ./server
restart: always
- "9000:9000"
- mongo
image: mongo
command: --smallfiles
restart: always
- "27017:27017"

Docker Pull Command
Source Repository