@@ -8,18 +8,17 @@ Node API is production ready and open source project in Node, Express and MongoD
8
8
9
9
### Documentation
10
10
11
- Swagger Docs https://rest-api-node.herokuapp .com/docs/
11
+ Swagger Docs https://rest-api-node-413916.uc.r.appspot .com/docs/
12
12
13
13
### Support
14
14
15
- This application is hosted on Heroku and serve a bunch of AJAX requests to give and manipulate data from database and give a support to test front end applications
15
+ This application is hosted on Google Cloud Platfom and serve a bunch of AJAX requests to give and manipulate data from database and give a support to test front end applications
16
16
17
17
### Servers
18
18
19
- | Server | Description | Api Url | Branch (GitHub) |
20
- | ---------- | ----------------- | ---------------------------------------------- | --------------- |
21
- | staging | Open Api | https://rest-api-node.herokuapp.com | master |
22
- | production | Authenticated Api | https://rest-api-node-production.herokuapp.com | production |
19
+ | Server | Description | Api Url |
20
+ | ---------- | ------------------------------------- | --------------------------------------------- |
21
+ | App Engine | Rest API Node - Google Cloud Platform | https://rest-api-node-413916.uc.r.appspot.com |
23
22
24
23
### Showcase
25
24
@@ -33,23 +32,23 @@ This application is hosted on Heroku and serve a bunch of AJAX requests to give
33
32
34
33
#### Projects
35
34
36
- | URL | Collection | Method | Parameters | Response | Action |
37
- | ------------------------------------------------------- | ---------- | ------ | ---------- | --------------------------------------- | ------------------------------------------- |
38
- | https://rest-api-node.herokuapp .com/projects | projects | get | Nothing | JSON with Array | Get a list of projects in the database |
39
- | https://rest-api-node.herokuapp .com/projects/create | projects | post | JSON | JSON | Add JSON into the database |
40
- | https://rest-api-node.herokuapp .com/projects/update/:id | projects | put | id, JSON | Update the document with sent JSON data |
41
- | https://rest-api-node.herokuapp .com/projects/select/:id | projects | get | id | JSON | Return the document, related to the sent id |
42
- | https://rest-api-node.herokuapp .com/projects/delete/:id | projects | delete | id | status 200 | Delete the document, related to the sent id |
35
+ | URL | Collection | Method | Parameters | Response | Action |
36
+ | ----------------------------------------------------------------- | ---------- | ------ | ---------- | --------------------------------------- | ------------------------------------------- |
37
+ | https://rest-api-node-413916.uc.r.appspot .com/projects | projects | get | Nothing | JSON with Array | Get a list of projects in the database |
38
+ | https://rest-api-node-413916.uc.r.appspot .com/projects/create | projects | post | JSON | JSON | Add JSON into the database |
39
+ | https://rest-api-node-413916.uc.r.appspot .com/projects/update/:id | projects | put | id, JSON | Update the document with sent JSON data |
40
+ | https://rest-api-node-413916.uc.r.appspot .com/projects/select/:id | projects | get | id | JSON | Return the document, related to the sent id |
41
+ | https://rest-api-node-413916.uc.r.appspot .com/projects/delete/:id | projects | delete | id | status 200 | Delete the document, related to the sent id |
43
42
44
43
#### Users
45
44
46
- | URL | Collection | Method | Parameters | Response | Action |
47
- | ---------------------------------------------------- | ---------- | ------ | ---------- | --------------- | ------------------------------------------- |
48
- | https://rest-api-node.herokuapp .com/users | users | get | Nothing | JSON with Array | Get a list of users in the database |
49
- | https://rest-api-node.herokuapp .com/users/create | users | post | JSON | JSON | Add JSON into the database |
50
- | https://rest-api-node.herokuapp .com/users/update/:id | users | put | id | JSON | Update the document with sent JSON data |
51
- | https://rest-api-node.herokuapp .com/users/select/:id | users | get | id | JSON | Return the document, related to the sent id |
52
- | https://rest-api-node.herokuapp .com/users/delete/:id | users | delete | id | status 200 | Delete the document, related to the sent id |
45
+ | URL | Collection | Method | Parameters | Response | Action |
46
+ | -------------------------------------------------------------- | ---------- | ------ | ---------- | --------------- | ------------------------------------------- |
47
+ | https://rest-api-node-413916.uc.r.appspot .com/users | users | get | Nothing | JSON with Array | Get a list of users in the database |
48
+ | https://rest-api-node-413916.uc.r.appspot .com/users/create | users | post | JSON | JSON | Add JSON into the database |
49
+ | https://rest-api-node-413916.uc.r.appspot .com/users/update/:id | users | put | id | JSON | Update the document with sent JSON data |
50
+ | https://rest-api-node-413916.uc.r.appspot .com/users/select/:id | users | get | id | JSON | Return the document, related to the sent id |
51
+ | https://rest-api-node-413916.uc.r.appspot .com/users/delete/:id | users | delete | id | status 200 | Delete the document, related to the sent id |
53
52
54
53
## Collections
55
54
@@ -79,15 +78,16 @@ This application is hosted on Heroku and serve a bunch of AJAX requests to give
79
78
80
79
## API
81
80
82
- | Technology | Description | Link |
83
- | ---------------- | ----------------------- | ------------ |
84
- | Heroku | Cloud Platform | [ heroku .com] |
85
- | Heroku mLab Dyno | MongoDB database server | [ mlab .com] |
86
- | GitHub | Version Controlling | [ github.com] |
81
+ | Technology | Description | Link |
82
+ | ------------- | ----------------------- | ------ ------------ |
83
+ | AppEngine | Google Cloud Platform | [ cloud.google .com] |
84
+ | MongoDB Atlas | MongoDB database server | [ mongodb .com] |
85
+ | GitHub | Version Controlling | [ github.com] |
87
86
88
87
## API Directories
89
88
90
- - Routes ` ./src/routes `
89
+ - Public Routes ` ./src/routes/public `
90
+ - Private Routes ` ./src/routes/private `
91
91
- Models ` ./src/app/Models `
92
92
- Controllers ` ./src/app/Controllers `
93
93
- Services ` ./src/app/Services `
@@ -112,7 +112,8 @@ AUTH_SECRET=docssecret
112
112
```
113
113
114
114
- Run the server <code >npm start</code >
115
- - Access in your browser <a href =" http://localhost:3000/projects " >http://localhost:3000/projects </a >
115
+ - Access in your browser <a href =" http://localhost:8080/projects " >http://localhost:8080/projects </a >
116
+ - For deployment is important to update app.yaml to your service_account and can be found on your GCP
116
117
117
118
## API Dependencies
118
119
0 commit comments