... | ... | @@ -4,7 +4,7 @@ |
|
|
|
|
|
Our team uses [Visual Studio Code](https://code.visualstudio.com) (VSCode) as our primary integrated development environment.
|
|
|
|
|
|
## Setup of the basic application
|
|
|
## Setup of the application
|
|
|
|
|
|
To set up the root application, we use Next.js. At first, we have to install Node.js (version 10.13 or later). After that, we use the console and direct to a new folder for our project (we could also open the folder in VSCode and use the terminal) and run the command:
|
|
|
|
... | ... | @@ -35,10 +35,10 @@ npm run dev |
|
|
```
|
|
|
|
|
|
which starts the Next.js app's development server on port 3000.
|
|
|
To check if the app is working properly, we can just open [http://localhost:3000](http://localhost:3000) from our browser, which should look like this:
|
|
|
|
|
|

|
|
|
To check if the app is working properly, we can just open [http://localhost:3000](http://localhost:3000) from our browser, which should look like this:
|
|
|
|
|
|

|
|
|
|
|
|
## Database
|
|
|
|
... | ... | @@ -54,15 +54,7 @@ In addition, it can be helpful to download [MongoDB Compass](https://www.mongodb |
|
|
|
|
|
### 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:
|
|
|
|
|
|
```sh
|
|
|
npm install mongoose
|
|
|
```
|
|
|
|
|
|
This will install the Mongoose package and add it as a dependency to your project. You can check the **package.json** file.
|
|
|
|
|
|

|
|
|
To simplify object access in MongoDB for our project, we utilize [Mongoose](https://mongoosejs.com).
|
|
|
|
|
|
## Hardhat
|
|
|
|
... | ... | |