Node CRUD example using Google Cloud Datastore
If you need help, call me: Twitter, Medium
- SublimeText or other file editor
- NPM
- Node JS
- Express, node network app framework
You need to create your Datastore database and configure it. For me, the faster and easiest way to configure my Datastore base was following the steps which you download your Google Credentials in a JSON.
For better understanding, you MUST read GoogleDatastore github
Download the project, and inside the main folder, just run the follow command for dependences installation
$ npm install
Change the value of variable let projectId = 'YOUR KEY HERE';
inside index.js file inside server/models folder.
In app.js file, I configurated the http PORT to 3000, you can change as you wanted, so, in this example, when start this example, it will be released in localhost:3000 address :)
So, open your favorite Terminal and run these command.
$ node app
You can check your app in localhost:3000/ ;)
Give me some ideias :P
MIT
Free Software, Free Examples, Free hugs!