Welcome, Developer! In this document, we'll guide you on creating a web application using the MERN (MongoDB, Express.js, React.js, Node.js) stack for recording devices issued by the ICT team to other departments within the company. The application should include features to capture information such as the date of issue, device details (name, manufacturer, device number), recipient details (name, department), and returning date.
- Node.js (at least version 18)
- npm (Node Package Manager)
- Docker (for MongoDB in the back-end)
-
Clone the repository locally:
git clone https://github.com/JoniRinta-Kahila/virittamo-challenge.git cd repo
-
Install dependencies for both projects:
npm install
-
Navigate to the
back
project directory:cd back
-
Install dependencies for the
back
project:npm install
-
Navigate to the
front
project directory:cd front
-
Install dependencies for the
front
project:npm install
You can start both projects simultaneously using the following command from the root directory:
npm start
This will launch both projects concurrently.
If you want to start only the back
project separately, use the following command in the root directory:
npm run dev:back
If you want to start only the front
project separately, use the following command in the root directory:
npm run dev:front