Welcome to our Law Firm's Cosmetics Consents platform. Designed exclusively for businesses and individuals seeking cosmetics-related legal consents, our platform offers an easy and efficient way to purchase individual consents or subscribe for online consent forms that can be filled and sent directly to your email.
Follow these steps to set up and run CodeNews on your local machine.
- Node.js & npm installed
- MySQL server up and running
-
Clone this repository:
git clone https://github.com/NaviteLogger/Website-Production-Repo-Copy.git
-
Set up the MySQL database:
- Start your MySQL server (depends on your installation, e.g., sudo service mysql start or mysql.server start).
- Create a database for the project.
- Import any necessary data (if provided as an SQL dump or similar).
- Update the database connection details in the project configuration (usually found in a config or .env file).
-
Install project dependencies:
npm install
- Configure your MySQL database settings in
.env
. Update the following fields with your database information:
DB_HOST="your_host"
DB_PORT="your_port"
DB_DATABASE="your_database"
DB_USER="your_username"
DB_PASSWORD="your_password"
SENDGRID_USERNAME="your_sendgrid_username"
SENDGRID_API_KEY="your_sendgrid_api_key"
SESSION_SECTER="your_session_secret"
POS_ID="your_pos_id"
SECOND_KEY="your_second_key"
CLIENT_ID="your_client_id"
CLIENT_SECRET="your_client_secret"
INDIVIDUAL_AGREEMENTS_PAYMENT_NOTIFY_URL="your_individual_agreements_payment_notify_url"
SUBSCRIPTION_PAYMENT_NOTIFY_URL="your_subscription_payment_notify_url"
DEFAULT_EMAIL="your_default_email"
- The database schema looks like this: +--------------------------+ | Tables_in_CosmeticsLawDB | +--------------------------+ | Admins | | Agreements | | AgreementsOwnerships | | Clients | | EmailVerifications | | OrderedProducts | | Orders | | Questions | | Subscriptions | | SubscriptionsOwnerships | +--------------------------+
- Start the web server using the command:
node server.js
Visit http://localhost:3000 (or whichever port you've set) in your browser to see the website in action.
We take security seriously. To protect your application from common exploits:
- Always use secure connections over HTTPS.
- Ensure all dependencies are always up-to-date and no security vulnerabilities are present.
- Store all sensitive data (like database passwords) securely, e.g., using environment variables.
Contributions are welcome! Feel free to submit issues, suggest improvements, or make pull requests to help enhance this project.
If you have any questions or concerns, please contact us at [email protected].
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.