Giter Site home page Giter Site logo

altinthaqi / next-elysia-template Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 0.0 626 KB

Next.js & ElysiaJS (Bun) pre-configured template with eden connector, lucia authentication, prisma & postgresql db integration, logging, CI, and more

Home Page: https://next-elysia-template.vercel.app

License: MIT License

CSS 28.84% TypeScript 64.01% JavaScript 7.15%
bunjs elysiajs nextjs prisma lucia

next-elysia-template's Introduction

Hey hey! This project provides a robust foundation for building modern web applications with ElysiaJS on the backend and Next.js on the client. It's already configured and ready to be used so you move faster and save time by not spending hours configuring and setting up your environment before you can actually start the work.

Features

  • ElysiaJS Backend: Utilize the power of ElysiaJS for building scalable and efficient server-side code, supercharged by Bun runtime, Static Code Analysis, and Dynamic Code Injection. Being one of the top-performing TypeScript frameworks.
  • Next.js Integration: Use Next.js for server-side rendering, routing, and more on the frontend.
  • Eden Connector: Achieve seamless type-safe communication between the client and server with Next.js Eden connector integration. Synchronize types across all applications and move fast without breaking anything, like tRPC.
  • Prisma ORM and PostgreSQL Integration: Simplify database operations with pre-configured Prisma ORM and PostgreSQL setup.
  • Lucia Authentication: Implement secure authentication flows including sign-up, sign-in, and log-in with ease. Comes with already configured middlewares, passed down sessions and contexts accessible through every endpoint, protected routes, and/or public ones.
  • Swagger Plugin: Document your API endpoints effortlessly with Swagger, accessible via /api/swagger.
  • Logestic Logging: Keep track of application events and actions with Logestic logger plugin for enhanced monitoring and debugging. An advanced and customizable logging library for ElysiaJS built by the community.
  • Dockerized DB: Easily containerize your postgres in a Docker container. Your dev environment parallelly starts your client, server & composes docker, all in one command.
  • CORS Plugin: Ensure secure communication between client and server with CORS integration plugin developed by the community.
  • ESLinting and Prettier: Maintain code quality and consistency with ESLint and Prettier, easily runnable with commands in package.json.
  • Continuous Integration (CI): GitHub CI set up to check if your code meets standards on each push you make.

Getting Started

To get started with the Next.js & ElysiaJS template application, follow these steps:

  1. Clone the Repository:

    git clone [email protected]:altinthaqi/next-elysia-template.git
  2. Install Dependencies:

    cd next-elysia-template
    bun install
  3. Configure Environment Variables:

    .env comes readily configured; feel free to update/fill in the necessary variables.

  4. Run the Development Server (this will docker-compose in parallel):

    bun --bun run dev

    or, if you want to run the server with node then you can omit --bun:

    bun run dev
  5. Run Docker separately (optional):

    You can build and start the Docker containers separately from the development environment using Docker Compose:

    docker-compose up

    just make sure to update package.json from:

    "dev": "concurrently \"docker-compose up\" \"next dev\"",

    to:

    "dev": "next dev",
  6. Start Building!:

    With the development server running, you're all set to start building your application.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

next-elysia-template's People

Contributors

altinthaqi avatar

Stargazers

 avatar  avatar Just.Chola avatar Loran Maes avatar ThuanHipp avatar Zulfi avatar Chalermporn Posoppitakwong avatar Nischal Dahal avatar  avatar ZF avatar  avatar Mr.Online avatar

Watchers

Just.Chola avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.