I'm new to GCP and it's so difficult for me to understand it's documents. I deployed my web app on App Engine. When I run my app locally, I save some data on a JSON file and it's perfect. Now I need to save that JSON which is coming from client side to somewhere on Google cloud.
Based on my research I need to store my data on datastore. I need some clear example and explanation to learn how to store data from App Engine to data store in GCP. Basically I'm looking for a way to store my JSON to pass it to another app later. I appreciate any help or suggestion.
const port = process.env.PORT || 8000;
app.use(express.static(__dirname + '/www'));
app.listen(port);
console.log('working on port '+ port);
app.use(express.json({limit:'1mb'}));
app.post('/api', (request, response) => {
var ressult = JSON.stringify(request.body);
//creating my JSON file
fs.appendFile('Result.json', ressult + "\n", (err) => {
if (err) throw err;
})
});