Node portion of website. Visit it here: http://ericma.net/n
MERN stack + Docker: (MongoDB, Express.js, React.js, and Nodejs)
Run npm install
in both backend
and frontend
directories.
- run
npm run build-localhost
infrontend
directory
This will build with cross-env set toPUBLIC_URL=http://localhost:8080/
- run
npm run start
inbackend
directory
## To set up the project with docker: (needs more work to get working propery with docker)
In backend
directory:
- run
docker-compose build
- run
docker-compose up -d
after build
To stop all services,
- run
docker-compose stop
- or run
docker-compose down --volumes
to bring everything down, removing the containers entirely, with the data volume of the services
In project frontend
directory, run npm start
to run only the react app locally
Eric Ma