Coder Social home page Coder Social logo

fullstackboilerplate's Introduction

Basic Infrastructure Project with Next.js, Node.js, and TypeORM

NextJS ReactJS Express TypeScript TypeORM Docker PostgreSQL

Vercel Deploy MIT License GitHub last commit GitHub issues GitHub pull requests

This project is a foundational infrastructure built with Next.js in the frontend and a combination of Node.js and TypeORM in the backend. It offers a solid starting point for modern web applications with a clean and efficient architecture.

Project Structure

  • Frontend: Next.js-based application in the frontend folder.
  • Backend: Node.js application using TypeORM in the backend folder.

Frontend (Next.js)

The frontend includes reusable components, global style configurations, and a default theme setup.

Backend (Node.js and TypeORM)

The backend provides a robust and scalable API, with controllers, entities, middlewares, and more.

Setup and Usage

Local Development

  1. Clone the Repository: Clone the project to your local machine.

  2. Install Dependencies:

    • Run installProject.sh for a first-time setup.
    • Or navigate to each of frontend and backend folders and run yarn install.
  3. Configure Environment:

    • Create a .env file in the backend folder based on the .env.example template.
    • Adjust database settings (DB_TYPE, DB_HOST, etc.) according to your local database setup.
  4. Start the Application:

    • In the frontend folder, run yarn dev to start the frontend.
    • In the backend folder, run yarn dev to start the backend.

Using Docker

  1. Configure Environment for Docker:

    • Ensure DB_HOST in your .env file is set to the service name of the database in docker-compose.yml (usually db).
    • Set other environment variables as required.
  2. Start with Docker Compose:

    • Run docker-compose up in the root directory to start both frontend and backend in containers.

Contributions

Contributions are welcome! Feel free to fork the project, make changes, and open a pull request.

fullstackboilerplate's People

Contributors

mariopaglia avatar dependabot[bot] avatar

Watchers

 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.