Skip to content

codeL0gic/SN-Craft-Cottage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Momma's Craft Cottage Retreat Website

Project Overview

A responsive website for Momma's Craft Cottage, a craft retreat venue located in Brown County, Indiana. This site features the story of the for this craft retreat venue, a gallery of pictures of retreat accommodations, map & location information, form for booking request capabilities, and random inspirational Bible verses.

###Code:YOU Feature Requirements

  1. Persist data to an external API and make the stored data accessible in your app
  2. Use arrays, objects, sets or maps to store and retrieve information that is displayed in your app.
  3. Use a regular expression to validate user input and either prevent the invlaid input to inform the user about.
  4. Retrieve data from a third party API and use it to display something within your app
  5. Create a form and store the submitted values in Local Storage

Technical Stack

  • HTML5
  • CSS3
  • JavaScript (ES6+)
  • Scripture API BIBLE
  • Google Maps Embed API

Installation

You can view the contents of the web app one of two ways, either cloning and building locally, or viewing using github pages.

TO CLONE AND VIEW LOCALLY:

  1. Clone the repository
git clone https://github.com/codeL0gic/SN-Craft-Cottage.git
  1. Set up Bible API Access -Visit API.Bible and create a free account, select Get Started and complete personal profile -Once logged in, go to Apps -Click "Add Application", complete form and select Create Application to generate a new API key -Copy your API key -In the project, rename config_example.js to config.js and add your API key to config.js

    config.js contents:

      export const API_KEY = "INSERT_API_KEY_HERE";

    -Update the .gitignore file to include:

    config.js
    
  2. Open index.html with your IDE using LiveServer and view in browser

TO VIEW USING GITHUB PAGES:

View using Github pages: https://codel0gic.github.io/SN-Craft-Cottage/

Bible Verse API Integration

-Implements the scripture API BIBLE for random verse generation -Uses async/await for API calls upon screen refresh -Displays verses with Chapter and verse # -API Key secured and properly implemented -Custom Styling for verse display on the Home Page

Local Storage Implementation

-Stores form data temporarily using Local Storage for the booking inquiries -Manages user input across sessions -Implements error handling for data persistence -Performs smooth form data recovery

Form Development

-Responsive booking inquiry form -Input validation for: -First & Last Name fields -Phone Number field -Email address field -Message Content to request booking dates -Custom Styling and mobile first design -Accessibility features included -Error handling message for incomplete input to fields

Email Submission System

-Direct email link generation -Formatted email body with inquiry details -Form data validation before submission -Success/error message handling -Auto-clearing form after submission

Goals of this Project

  1. Demonstrate my understanding and knowledge of wire framing and implementing a responsive web design
  2. Demonstrate my knowledge of how to test, consume, create and implement Rest API's

Future Enhancements

  1. Implement the Weather API to show the current weather for the Retreat Location at the time it is accessed.
  2. Implement a function for the form data to be immediately sent to retreat email address.
  3. Implement calendar for accurate availability and reservation capability

Comments: I have used the following resources in my education, development and implementating all aspects of this website: MDN documentation, Google Developer Tools, StackOverflow, FontAwesome, BIBLE API, Youtube videos, Claude AI, GitHub documentation, Github CoPilot, ESLint, Chat GBT, npm docs, Express Documentation, freeCodeCamp, LUcid Charts, Postman, Javacript.info.com, LinkedInLearning. I have also inspected numerous websites to understand how CSS and HTML function that helped me decide how to design Momma's Craft Cottage.

About

Retreat Rental Property for fellow crafters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published