This is a simple demo app to show what the Hostim.dev container hosting platform can do. It's a basic user management system with a few key features:
- Create users and list them
- Upload avatar images
- Use PostgreSQL for the database
- Use Redis for caching
- Runs in Docker containers
- Node.js with Express
- Sequelize for ORM
- PostgreSQL
- Redis
- Docker + Docker Compose
- Jade for templates
config/database.js– sets up the PostgreSQL connectionconfig/redis.js– connects to Redismodels/User.js– defines the User modelviews/– contains the Jade templatesdocker-compose.yml– runs everything in containersDockerfile– builds the Node.js app container
To run the app locally:
docker-compose up --buildDocker Compose sets up three services:
- The web app (Node.js)
- PostgreSQL
- Redis
This app is also set up for easy deployment on Hostim.dev. It shows how to spin up a full stack app with a database and cache inside containers. For detailed steps on hosting this on Hostim.dev, check out the Hostim.dev deployment guide.