This project is a MEVN (MongoDB, Express.js, Vue.js, Node.js) application.
- Node.js and npm should be installed.
- Docker and Docker Compose should be installed (optional, for running with Docker).
- Open a terminal and navigate to the
client
directory. - Run the following command to install dependencies: npm install
- After the installation is complete, start the development server: npm run dev
- The client application will be accessible at
http://127.0.0.1:5173/
.
- Open a terminal and navigate to the
server
directory. - Run the following command to install dependencies: npm install
- After the installation is complete, start the server: npm start
- The server will be accessible at
http://localhost:3000
.
- Modify the environment variables, configuration files, and other settings as per your requirements.
- Make sure MongoDB is running and accessible at the specified URL in the server configuration. Change the url of MongoDB in the .env server file to 'mongodb://localhost:27017/tasks'.
If you prefer running the project using Docker, follow these steps to set up the environment:
- Make sure Docker and Docker Compose are installed on your system.
- Build the Docker images and start the containers using Docker Compose: docker-compose up
- The client application will be accessible at
http://localhost:80/
.