
Building Word Wizard for the AWS Game Builder Challenge
This blog talks about how I developed Word Wizard from scratch using AWS technologies
serverless-http
and add this code in my Express.js app:1
2
3
4
5
6
7
8
9
const express = require('express');
const serverless = require('serverless-http');
const app = express();
/*
Express app logic
*/
module.exports.handler = serverless(app);
1
2
const genAI = new GoogleGenerativeAI(process.env.GEMINI_API);
const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash" });
Access-Control-Allow-Origin
to the AWS Amplify app URL, set security headers such as X-Frame-Options
, Referrer-Policy
, Strict-Transport-Security
, and others.