The backend service for the AI Form Autofill system. It handles user authentication, profile management, and form-related operations.
- User Authentication: Secure login, registration, and token-based authentication.
- Profile Management: Create, update, and retrieve user profiles.
- Form History: Store and manage form filling history.
- AI Integration: Supports AI-based suggestions for open-ended form fields.
- Express.js: RESTful API framework for handling HTTP requests.
- Prisma: Database ORM for managing PostgreSQL.
- JWT Authentication: Secure token-based authentication.
- Environment Configuration:
.envfile for managing environment variables.
-
Clone the repository:
git clone this repo cd autofill-backend -
Install dependencies:
npm install
-
Set up the database:
- Update the
DATABASE_URLin.envwith your PostgreSQL connection string. - Run migrations:
npx prisma migrate dev
- Update the
-
Start the server:
npm run dev
- Secure Authentication: Password hashing and token-based authentication.
- Profile Completion: Tracks and updates profile completion status.
- Form History: Logs form filling activities for analytics.
- AI Context Building: Prepares user data for AI-based suggestions.
This backend provides the core functionality for the AI Form Autofill system.