... | ... | @@ -52,16 +52,6 @@ To begin, you'll need to download MongoDB onto your computer. This can be accomp |
|
|
|
|
|
In addition, it can be helpful to download [MongoDB Compass](https://www.mongodb.com/products/compass), a graphical user interface that enables you to directly view your data sets.
|
|
|
|
|
|
After successfully downloading MongoDB, you can proceed to install the client module/driver for your project. Ensure that you're in the **nextjs-blog** directory, and run the following command:
|
|
|
|
|
|
```sh
|
|
|
npm install mongodb
|
|
|
```
|
|
|
|
|
|
You can verify that the dependency has been added correctly by checking the **package.json** file.
|
|
|
|
|
|

|
|
|
|
|
|
### Mongoose
|
|
|
|
|
|
To simplify object access in MongoDB for our project, we utilize [Mongoose](https://mongoosejs.com). To add it to your project, ensure that you're in the **nextjs-blog** directory and run the following command:
|
... | ... | @@ -229,5 +219,5 @@ To see the report of the tests open index.html (coverage/lcov-report/pages/index |
|
|
|
|
|
# Gitlab CI-Pipeline
|
|
|
|
|
|
To configure a job, which run the tests after each commit, you have to create a (.gitlab-ci.yml)[.gitlab-ci.yml](https://gitlab.bht-berlin.de/s85885/blockevent/-/blob/develop/.gitlab-ci.yml) file.
|
|
|
To configure a job, which run the tests after each commit, you have to create a [.gitlab-ci.yml](https://gitlab.bht-berlin.de/s85885/blockevent/-/blob/develop/.gitlab-ci.yml) file.
|
|
|
Here you can write a script that execute the tests. |
|
|
\ No newline at end of file |