Skip to content

Commit 3b74b96

Browse files
committed
New page and configuration ready
1 parent 4930096 commit 3b74b96

26 files changed

+406
-38
lines changed

README.md

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,62 @@
11
# Rest Image Api - Nodejs - TypeScript - Mongodb
22

3-
### This is a simple rest api to upload images to the web server. This project was made with Nodejs, Typescript and mongodb.
3+
### This is a simple rest api to upload images to the web server. This project was made with Nodejs, Typescript and mongodb. Wirh all the basics endpints using the request models put, post, get and delete
44
----------------------------------------------------------------
55
# Installation
66

7+
### To make a successful installation type the next commands after clone the github repository
78

9+
```
10+
npm install
11+
```
12+
### To run the project in development mode
13+
```
14+
npm run dev
15+
```
16+
### To run the project in production mode
17+
```
18+
npm run start
19+
```
20+
### This project has a home page, you can get access only write in url bar of your favorite web browser
21+
```
22+
http://localhost:8000/
23+
```
24+
![Home Page](img/home.png)
825

26+
### Importa you need has to be installed mongodb and running as service
927

28+
---------
29+
30+
### To clone the github repository
31+
```
32+
git clone https://github.com/userlg/Rest-Api-Images-Nodejs-Typescript-Mongodb
33+
```
34+
------------
35+
36+
# Screenshot
37+
38+
+ Get all images saved in the server
39+
---------
40+
![capture 1](img/api1.png)
41+
+ Insert a new image in the server
42+
------------
43+
44+
![Capture 2](img/api2.png)
45+
+ Find an specific image in the server
46+
------
47+
48+
![capture 3](img/api3.png)
49+
50+
+ Find and delete a specific image in the server
51+
52+
----------
53+
54+
![Capture 4](img/api4.png)
55+
56+
+ Edit and update the data from specific image
57+
------------
58+
59+
![Capture 5](img/api5.png)
1060

1161

1262

img/api1.png

160 KB
Loading

img/api2.png

69.8 KB
Loading

img/api3.png

49 KB
Loading

img/api4.png

54.9 KB
Loading

img/api5.png

62.6 KB
Loading

img/home.png

133 KB
Loading

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"express": "^4.17.3",
3030
"express-handlebars": "^6.0.5",
3131
"fs-extra": "^10.1.0",
32-
"mongoose": "^6.3.1",
32+
"mongoose": "^6.3.3",
3333
"morgan": "^1.10.0",
3434
"multer": "^1.4.4",
3535
"rimraf": "^3.0.2",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ let port = app.get('port');
1212
const server = async () => {
1313
app.listen(port, async () => {
1414
console.log(`\t\tServer listening on port--->${port}\n`);
15-
// await startConnection();
15+
await startConnection();
1616
console.log('\t\tDate:' + generateDate());
17-
console.log('\tID_SESSION:' + uuid4().toString())
17+
console.log('\tID_SESSION:' + uuid4().toString() + '\n\n')
1818
});
1919
};
2020

0 commit comments

Comments
 (0)