@@ -8,18 +8,17 @@ Node API is production ready and open source project in Node, Express and MongoD
88
99### Documentation
1010
11- Swagger Docs https://rest-api-node.herokuapp .com/docs/
11+ Swagger Docs https://rest-api-node-413916.uc.r.appspot .com/docs/
1212
1313### Support
1414
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
1616
1717### Servers
1818
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 |
2322
2423### Showcase
2524
@@ -33,23 +32,23 @@ This application is hosted on Heroku and serve a bunch of AJAX requests to give
3332
3433#### Projects
3534
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 |
4342
4443#### Users
4544
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 |
5352
5453## Collections
5554
@@ -79,15 +78,16 @@ This application is hosted on Heroku and serve a bunch of AJAX requests to give
7978
8079## API
8180
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] |
8786
8887## API Directories
8988
90- - Routes ` ./src/routes `
89+ - Public Routes ` ./src/routes/public `
90+ - Private Routes ` ./src/routes/private `
9191- Models ` ./src/app/Models `
9292- Controllers ` ./src/app/Controllers `
9393- Services ` ./src/app/Services `
@@ -112,7 +112,8 @@ AUTH_SECRET=docssecret
112112```
113113
114114- 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
116117
117118## API Dependencies
118119
0 commit comments