A modern, responsive website for Anubis Pre-Clinical Research with integrated contact form functionality using Google Sheets.
- Modern, responsive design
- Service showcase
- Contact form with Google Sheets integration
- Spam prevention
- Email notifications for new submissions
- Easy deployment process
anubis-preclinical/
├── index.html # Home page
├── services.html # Services page
├── contact.html # Contact page
├── styles.css # Main stylesheet
├── contact.js # Contact form handling
├── deploy.js # Deployment script
├── package.json # Project dependencies
├── .env # Environment variables
└── .gitignore # Git ignore rules
- Clone the repository:
git clone <repository-url>
cd anubis-preclinical- Install dependencies:
npm install-
Set up Google Cloud Platform:
- Go to Google Cloud Console
- Create a new project
- Enable the following APIs:
- Google Sheets API
- Google Apps Script API
- Google Drive API
- Create OAuth 2.0 credentials
- Download the credentials
-
Configure environment variables:
- Copy the
.env.examplefile to.env - Fill in your Google Cloud credentials:
GOOGLE_CLIENT_ID=your_client_id GOOGLE_CLIENT_SECRET=your_client_secret GOOGLE_REDIRECT_URI=http://localhost:3000/oauth2callback GOOGLE_REFRESH_TOKEN=your_refresh_token NOTIFICATION_EMAIL=your_email@domain.com
- Copy the
-
Deploy the contact form backend:
npm run deploy- Start the development server:
npm startThe website will be available at http://localhost:3000
To deploy the website to a production environment:
- Choose a web hosting service (e.g., Netlify, Vercel, GitHub Pages)
- Update the Google Apps Script deployment URL in
contact.js - Deploy the website files to your chosen hosting service
The contact form is automatically configured during deployment. The deployment script:
- Creates a Google Sheet to store form submissions
- Deploys a Google Apps Script web app to handle form submissions
- Updates the contact form with the correct submission URL
- Sets up spam prevention and email notifications
- Monitor form submissions in the Google Sheet
- Check spam filters and adjust as needed
- Update the website content as required
- Keep dependencies updated:
npm update- Environment variables are used for sensitive credentials
- Form submissions are protected by spam prevention
- Google Sheets access is restricted to authorized users
- CORS policies are configured for production use
The website is compatible with:
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
This project is proprietary and confidential. All rights reserved.
Copyright (c) 2024 Anubis Pre-Clinical Research
Unauthorized copying, distribution, modification, public display, or public performance of this software or any of its contents is strictly prohibited. For permission requests, please contact team@anubisconsulting.org.