mirror of
				https://codeberg.org/buzzcode2007/FCC-Project-URLShortener.git
				synced 2025-05-21 03:06:34 +00:00 
			
		
		
		
	Updated npm dependencies and added a note on the compatabile version of mongoose for connecting to the free tier of mongodb atlas
This commit is contained in:
		
							parent
							
								
									7fed7e80e7
								
							
						
					
					
						commit
						700d85ccb6
					
				
					 2 changed files with 9 additions and 9 deletions
				
			
		
							
								
								
									
										16
									
								
								package.json
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								package.json
									
										
									
									
									
								
							|  | @ -1,20 +1,20 @@ | |||
| { | ||||
| 	"name": "shorturl", | ||||
| 	"version": "0.0.1", | ||||
| 	"version": "0.0.2", | ||||
| 	"description": "API project for freeCodeCamp", | ||||
| 	"main": "server.js", | ||||
| 	"scripts": { | ||||
| 		"start": "node server.js" | ||||
| 	}, | ||||
| 	"dependencies": { | ||||
| 		"express": "^5.0.0-alpha.2", | ||||
| 		"mongodb": "^2.2.5", | ||||
| 		"mongoose": "^4.5.7", | ||||
| 		"cors": "^2.8.1", | ||||
| 		"body-parser": "^1.15.2" | ||||
| 		"express": "^4.17.1", | ||||
| 		"mongodb": "^3.3.3", | ||||
| 		"mongoose": "^5.7.7", | ||||
| 		"cors": "^2.8.5", | ||||
| 		"body-parser": "^1.19.0" | ||||
| 	}, | ||||
| 	"engines": { | ||||
| 		"node": "4.4.5" | ||||
| 		"node": "10.17.0" | ||||
| 	}, | ||||
| 	"repository": { | ||||
| 		"type": "git", | ||||
|  | @ -26,4 +26,4 @@ | |||
| 		"express" | ||||
| 	], | ||||
| 	"license": "MIT" | ||||
| } | ||||
| } | ||||
|  |  | |||
|  | @ -12,7 +12,7 @@ var app = express(); | |||
| var port = process.env.PORT || 3000; | ||||
| 
 | ||||
| /** this project needs a db !! **/  | ||||
| // mongoose.connect(process.env.MONGOLAB_URI);
 | ||||
| // mongoose.connect(process.env.DB_URI);
 | ||||
| 
 | ||||
| app.use(cors()); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue