omegaup / website-OFMI

https://website-ofmi.vercel.app
MIT License
10 stars 3 forks source link

Next-Prisma-Starter

Next-Prisma-Starter is a boilerplate project designed to help you quickly set up a well-organized development environment for building web applications using Next.js, Prisma, Redux Toolkit, RTK Query, and Tailwind CSS for styling. This starter template provides a solid foundation for your projects, making it easier to get started with popular technologies and best practices.

Tech Stack

Getting Started

To get started with Next-Prisma-Starter, follow these steps:

  1. Run the app and postgres locally. In the root of the project run:
docker compose up

This is the current DB design

  1. Run Migrations: If needed, apply database migrations to create the database schema.

    docker compose exec app npm run migrate:dev

    For an existing schema you can update it without creating a migration folder with following command:

    docker compose exec app npm run push
  2. Seed Database: To seed your database with dummy data.

    docker compose exec app npm run prisma:seed
  3. Open Your App: Your application should now be running at http://localhost:3000. You can start building your project by modifying the source code located in the src directory.

Folder Structure

Next-Prisma-Starter follows a well-organized folder structure to keep your codebase clean and maintainable. Here's a brief overview:

next-prisma-starter/
├── prisma/
├── public/
├── src/
│   ├── config/
│   ├── pages/
│   ├── redux/
│   │   ├── api/
│   │   ├── features/
│   ├── styles/
│   ├── types/
│   └── utils/
├── ...
├── package.json
├── tsconfig.json
├── ...

Documentation

For more detailed documentation on how to use Next-Prisma-Starter and its features, refer to the Wiki.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute it as needed for your projects. Please refer to the LICENSE file for more information.

Contributions

Contributions are welcome! If you have suggestions, bug reports, or want to contribute to this project, please open an issue or create a pull request.

Happy coding with Next-Prisma-Starter! 🚀

Before creating the commit make sure you run docker compose exec app npm run format.

StandardJS

Install the StandardJS extension.

Activate Auto Fix On Save in the VSCode settings.