---
# System prepended metadata

title: Development image configuration
tags: [React, Migration, Go, Nodejs, Plando, Document, Docker, Mongodb]

---

# Development image configuration

###### tags: `Document` `Docker` `Nodejs` `Mongodb` `React` `Go` `Migration` `Plando`
:::info
:memo: **Note:** The crud api is almost ready for production, but the mongo container is just a development tool and the frontend is configured just for development porpouse.
:::


## Containers
All images where builder based on [Docker image security](/s/Hk-1BwHrI).

### CRUD API
The crud api is a straigth forward image with multi-stage builds. Dev and Prod.

On dev it has the binding of nodemon. Also the shared volume with the host machine, for aid with the editing and evolution of the application.

For production, it derives from a prod intent base image, and its copy the files from builder to the runtime enviroment.

### Mongodb
The mongodb instance in the configurations is just a dev tool, and nothing more. Please do not use this for production. Not even a MVP one. ==Just DON'T!==

-- changes on code, for being able to pass the mongo data througt env variables
-- dificulties with the clean db case
-- about the users

#### links
- [local mongodb](https://zellwk.com/blog/local-mongodb/)
- [connecting to a mongodb](https://mongodb.github.io/node-mongodb-native/2.0/tutorials/connecting/)
- [about authentication in docker](https://stackoverflow.com/questions/34559557/how-to-enable-authentication-on-mongodb-through-docker)

## React

- node-saas problem
- package.lock problem
- 
