Simple TO-DO notes listing web app using NextJS and MongoDB
310
A monorepo containing the latest "local development" images of a typical TO-DO notes listing app built with NextJS and Redux Toolkit. It is a Docker template for client + server MERN app focusing on dev productivity for localhost development.
These images are only for local development.
Live Preview
https://weaponsforge.github.io/todo-next/
GitHub Repository
https://github.com/weaponsforge/todo-next
Pull the "latest" client and server development images.
docker pull weaponsforge/todo-next:client
docker pull weaponsforge/todo-next:server
Pull the public MongoDB image.
docker pull mongo:4.4.6
Create .env files for the client and server.
client/README.md and server/README.md files of the todo-next GitHub repository for more information about the .env file contents.Spin up the MongoDB container:
docker run -d --name mongo -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=secret -e MONGO_INITDB_DATABASE=todo-next -p 27017:27017 mongo:4.4.6
Spin up the client and server containers with:
docker run -it --rm -p 3000:3000 --env-file .env weaponsforge/todo-next:client
docker run -it --rm -p 3001:3001 --env-file .env --link mongo weaponsforge/todo-next:server
Load the localhost website at:
http://localhost:3000
Clone the todo-next repository.
git clone https://github.com/weaponsforge/todo-next.git
Navigate to the cloned todo-next root project directory, then run:
docker compose -f docker-compose.dev.yml pull
Set up the environment variables for the todo-next /client and /server directories.
client/README.md and server/README.md files for more information..env variables setup for Windows and Linux to enable hot reload.Run the development images.
docker compose -f docker-compose.dev.yml up
Load the localhost website at:
http://localhost:3000
Content type
Image
Digest
sha256:7530cb3c3…
Size
210.5 MB
Last updated
almost 2 years ago
docker pull weaponsforge/todo-next:server