Still working on it, but life is busy.
Auth Your Own Roll is a project designed to provide authentication solutions using various databases. This project utilizes Drizzle ORM for database interactions.
- Node.js
- pnpm (or npm/yarn)
- A supported database (PostgreSQL, MySQL, SQLite, or Turso)
-
Clone the repository:
git clone <repository-url> cd authyourownroll
-
Install dependencies:
pnpm install
Before running the project, you need to configure the database settings in the drizzle.config.ts
file.
-
Open
drizzle.config.ts
. -
Set the
dialect
property to your desired database type. The available options are:'postgresql'
'mysql'
'sqlite'
'turso'
Example configuration for PostgreSQL:
export default { dialect: 'postgresql', // ... other configurations ... }
To switch the database:
- Update the
dialect
property indrizzle.config.ts
to the desired database type. - Ensure you have the corresponding database server running and accessible.
- Install any necessary database drivers if required (e.g.,
pg
for PostgreSQL,mysql
for MySQL).
After configuring the database, you can run the project using:
pnpm gen