My-Weekly-ToDo-List/test-account-setup.js
mARTin d92a8c7210 feat: add task actions (notes/delete) and refine animation logic
- Added 'onDelete' and 'onNotes' support to TaskItem.
- Implemented hover actions (Delete and Notes icons) for tasks.
- Added Notes Modal for editing task markdown content.
- Simplified navigation animation to remove blank flash (single-phase slide-in).
- Fixed syntax error in updateTask function.
- Updated styles for modal and task actions.
2026-02-01 12:25:53 +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:3000/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:3000/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:3000/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:3000/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:3000/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:3000/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));