rockerBOO / civitai

A repository of models, textual inversions, and more

Home Page:https://civitai.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributors Forks Stargazers Issues Apache License 2.0 Discord


Table of Content

About the Project

Our goal with this project is to create a platform where people can share their stable diffusion models (textual inversions, hypernetworks, aesthetic gradients, VAEs, and any other crazy stuff people do to customize their AI generations), collaborate with others to improve them, and learn from each other's work. The platform allows users to create an account, upload their models, and browse models that have been shared by others. Users can also leave comments and feedback on each other's models to facilitate collaboration and knowledge sharing.

Tech Stack

We've built this project using a combination of modern web technologies, including Next.js for the frontend, TRPC for the API, and Prisma + Postgres for the database. By leveraging these tools, we've been able to create a scalable and maintainable platform that is both user-friendly and powerful.

  • DB: Prisma + Postgres
  • API: tRPC
  • Front-end + Back-end: NextJS
  • UI Kit: Mantine
  • Storage: Cloudflare

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

First, make sure that you have the following installed on your machine:

  • Node.js (version 18 or later)
  • Docker (for running the database)

We recommend you have installed nvm in order to set the right node version to run this project

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash

Installation

  1. Clone the repository to your local machine.
  2. Run npm install in the project directory to install the necessary dependencies.
  3. Create your .env by making a copy of the contents from .env-example file.
  4. Spin up the database with docker-compose up -d.
  5. Start the development server by running npm run dev.
  6. Visit http://localhost:3000.

Important Scripts

docker-compose up -d # Spin up db and redis

npm run dev # Start the dev environment

npm run db:migrate -- --name migration-name # Create a database migration with prisma after updating the schema

npm run db:generate # Generates local prisma client

npm run db:ui # Start Prisma Studio to manage the database content

npm run build # Build the NextJS project

Contributing

Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the repository to your own GitHub account.
  2. Create a new branch for your changes.
  3. Make your changes to the code.
  4. Commit your changes and push the branch to your forked repository.
  5. Open a pull request on our repository.

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

License

Apache License 2.0 - Please have a look at the LICENSE for more details.

About

A repository of models, textual inversions, and more

https://civitai.com

License:Apache License 2.0


Languages

Language:TypeScript 95.9%Language:PLpgSQL 3.4%Language:JavaScript 0.3%Language:CSS 0.3%Language:Dockerfile 0.1%