This project is a serverless application built using AWS services and the Serverless Framework. It provides a web interface for users to register, sign in, search for restaurants based on a theme, and place orders. The backend is powered by AWS Lambda, DynamoDB, Cognito, and other AWS services.
Before you begin, ensure you have the following installed:
- Node.js (>= 18)
- npm (Node Package Manager)
- AWS CLI configured with appropriate permissions
- Serverless Framework
-
Clone the repository:
git clone https://github.com/your-repo/prsls-online-demo.git cd prsls-online-demo
-
Install the dependencies:
npm install
-
Update the
serverless.yml
file with your custom configurations such asname
,stage
, and AWS region. -
Ensure you have the necessary AWS credentials configured in your environment.
Deploy the application using the Serverless Framework:
sls deploy
This will deploy all the necessary AWS resources and output the endpoints and other configurations.
- Open the deployed web application in your browser.
- Register a new user by clicking on the "Register" link.
- Sign in using the registered credentials.
- Enter a theme (e.g., "rick and morty") and click "Find Restaurants" to search for restaurants.
- Click on a restaurant to place an order.
Run the tests using the following command:
npm test
For acceptance tests, use:
npm run acceptance
functions/
: Contains the Lambda function handlers.static/
: Contains the static HTML, CSS, and JavaScript files for the web interface.serverless.yml
: Serverless Framework configuration file.package.json
: Node.js project configuration file.README.md
: Project documentation.