My-Weekly-ToDo-List/test-account-setup.js
mARTin c82572935c feat: dark mode color adjustment, multi-source quotes, UI text wrapping, and versioning rules
- Add dark mode color adjustment helper for category colors
- Support multiple motivational quote source URLs
- Fix text wrapping for tasks/events to prevent horizontal overflow
- Improve someday list item layout for long text
- Add CLAUDE.md with semantic versioning and git workflow rules
- Update test/doc URLs and planning docs

v1.1.0

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 23:33:25 +01:00

68 lines
2.9 KiB
JavaScript

/**
* Test account creation script
* This script demonstrates how to create a test account for My Weekly To Do List
*
* Usage:
* 1. Start the development server: npm run dev
* 2. Visit http://localhost:3001/auth/signup in your browser
* 3. Fill in the form with:
* - Email: mail@martin-bierschenk.de
* - Password: My-Weekly-ToDo-List
* 4. Or use the following curl command:
*
* curl -X POST http://localhost:3001/api/auth/signup \
* -H "Content-Type: application/json" \
* -d '{"email":"mail@martin-bierschenk.de","password":"My-Weekly-ToDo-List"}'
*
* For login after signup:
* curl -X POST http://localhost:3001/api/auth/login \
* -H "Content-Type: application/json" \
* -d '{"email":"mail@martin-bierschenk.de","password":"My-Weekly-ToDo-List"}'
*/
// This is a demonstration of how the signup process should work
// In a real scenario, you would use the web interface or make HTTP requests
console.log('Test Account Creation Guide for My Weekly To Do List');
console.log('=====================================================');
console.log('');
console.log('To create the test account with your specified credentials:');
console.log('');
console.log('Email: mail@martin-bierschenk.de');
console.log('Password: My-Weekly-ToDo-List');
console.log('');
console.log('Method 1: Using Browser Interface');
console.log('1. Navigate to http://localhost:3001/auth/signup');
console.log('2. Fill in the form with the credentials above');
console.log('3. Submit the form');
console.log('');
console.log('Method 2: Using curl commands (in terminal)');
console.log('First, create the account:');
console.log('curl -X POST http://localhost:3001/api/auth/signup \\');
console.log(' -H "Content-Type: application/json" \\');
console.log(' -d \'{"email":"mail@martin-bierschenk.de","password":"My-Weekly-ToDo-List"}\'');
console.log('');
console.log('Then, authenticate with the account:');
console.log('curl -X POST http://localhost:3001/api/auth/login \\');
console.log(' -H "Content-Type: application/json" \\');
console.log(' -d \'{"email":"mail@martin-bierschenk.de","password":"My-Weekly-ToDo-List"}\'');
console.log('');
console.log('Method 3: Manual form submission (using browser dev tools)');
console.log('1. Open browser developer tools (F12)');
console.log('2. Go to Network tab');
console.log('3. Fill in signup form manually');
console.log('4. Intercept the POST request to /api/auth/signup');
console.log('5. Modify the request payload to use your test credentials');
console.log('');
console.log('Note: The password will be securely hashed and stored.');
console.log('The system should create a user record in your database.');
console.log('');
// If you want to test this programmatically, here's a simple script:
const testCredentials = {
email: "mail@martin-bierschenk.de",
password: "My-Weekly-ToDo-List"
};
console.log('Test Credentials Object:');
console.log(JSON.stringify(testCredentials, null, 2));