It is a Node-Express application which runs a simple script to process images.
You'll need to create a new node server. Open a new terminal within the project directory and run:
-
Initialize a new project:
npm i -
Run the development server with
npm run dev
Few helper functions to handle some of these work are imported at the top of the ./src/server.ts file.
import { filterImageFromURL, deleteLocalFiles } from "./util/util";Root directory of project contains image-filter.postman_collection.json collection file. Import collection in Postman to test endpoint.
- Setup ElasticBean CLI on your machine. (Setup Instructions)
- After installing CLI, use
eb initcommand to initialize repository. After running theeb initcommand and following the guided setup will create a new directory in our project named.elasticbeanstalk. - Within this configuration file, there is a configuration file named
config.yml. This is the set of instructions Elastic Beanstalk will follow when provisioning your AWS infrastructure and deploying your code. Add following configuration toconfig.ymlfile.
deploy:
artifact: ./www/Archive.zip
- Create deployable Build Archive by using
npm run buildcommand. - Create an environment running a sample application with the
eb createcommand. This command creates a load-balanced environment with the default settings for the Node.js platform and provision resources.
Navigate to ./deployment_screenshots directory which contains screenshot of application and deployment on AWS Elastic Beanstalk.
If you liked Dynamic Text Header used in this README, check it out here .