You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,7 @@ No errors have been found or reported.
200
200
- Generate script (bash, sh) that automates the renaming of files and content to replace `prototype` with a new desired name in the model and controller, as well as the API URL (router).
201
201
- Generate a admin panel with a frontend (as react) that emulates the same functionalities as the [Django REST Framework](https://www.django-rest-framework.org/) and facilitates the management of models and API behaviour from a web interface.
202
202
- Generate a web interface in the frontend that facilitates the creation of models and controllers.
203
+
- Use morgan to extends the Express Rest API’s logging capabilities.
203
204
204
205
# Technologies Used
205
206
@@ -299,6 +300,17 @@ npm start
299
300
300
301
##### Local in the computer
301
302
303
+
To install mongoDB y the local computer. With windows the instruction are [here](https://www.mongodb.com/try/download/community) and to mac I will use [Homebrew](https://brew.sh/):
304
+
305
+
```
306
+
brew tap mongodb/brew
307
+
brew install mongodb-community
308
+
```
309
+
310
+
Finally, type `brew services start mongodb-community` into your terminal. This is what actually starts up the Mongo server. **You’ll need to have the Mongo server running any time you want to interact with your database, view your myFlix app, or use the Mongo shell**.
311
+
312
+
To stop running the Mongo server, enter the command `brew services stop mongodb-community` in your terminal.
313
+
302
314
##### MongoDB atlas as remote
303
315
304
316
Loggin and create account of [MongoDB Atlas](https://www.mongodb.com/atlas/database)
_You must install in vscode or another similar IDE the plugin: [REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) to be able to carry out these steps. [Here](https://fullstackopen.com/en/part3/node_js_and_express#the-visual-studio-code-rest-client) some instructions about how to use it_
372
-
_Modify `requests\add_new_user.rest` to add the users you want. For instance (to add username `root` and `password` test):_
384
+
_Modify `requests\user.rest` to add the users you want. For instance (to add username `root` and `password` test):_
373
385
374
386
<pre>
375
387
POST http://localhost:3003/api/users
@@ -421,7 +433,7 @@ I would recommend (if you want to change to `blog` for example):
421
433
422
434
## Perform CRUD operations after modified the prototype
423
435
424
-
The file [requests/CRUD_prototypes.rest](requests/CRUD_prototypes.rest) can be used as a basis for performing CRUD operations on the modified model based on the controller operations (which must also be modified).
436
+
The file [requests/prototype.rest](requests/prototype.rest) can be used as a basis for performing CRUD operations on the modified model based on the controller operations (which must also be modified).
425
437
426
438
_About the use of .rest files and REST Clients, the follow [section](https://github.com/patchamama/prototype-fast-dev-nodeJS-API#adding-users) can help._
0 commit comments