A build to learn project using the MERN stack.
- Clone the repository:
git clone https://github.com/SafaeMT/blog-engine.git
cd blog-engine/
-
Set up the dual development:
Development is done within Docker containers and commits are pushed from our local machine.
a) Install the dependencies
cd client && npm ci
cd ../server && npm ci
cd .. && npm ci
b) Rename .env.example
to .env
c) Create and start containers (services)
docker-compose up --build
The application is now accessible from https://localhost:3000/
e) To install a new package
docker-compose exec <service name> <install command>
d) To stop and remove all the containers
docker-compose down