- cd backend
- Install the project dependencies using
npm install
. - Run the web application using
npm dev
.
npm uninstall bcrypt npm install bcryptjs
cd backend
- docker build -t ecommerce-be-node .
- docker run -p 4000:4000 ecommerce-be-node
This project uses GitHub Actions for continuous integration and deployment. The workflows are defined in the .github/workflows
directory for both the backend and frontend.
The backend workflow is defined in backend/.github/workflows/backend.yml
. It includes the following steps:
- Checkout code
- Set up Node.js
- Install dependencies
- Build backend
- Run tests
- Build Docker image
- Deploy to environment
The frontend workflow is defined in frontend/.github/workflows/frontend.yml
. It includes the following steps:
- Checkout code
- Set up Node.js
- Install dependencies
- Run tests
- Build frontend
- Build Docker image
- Push Docker image
- Deploy to environment