Giter VIP home page Giter VIP logo

side-project-starter-kit's Introduction

image

Getting Started

This repository was created with the intention that it can serve as a base project, oriented to the creation of Side Projects that need to be built in an orderly, scalable and above all that allows to add features quickly.

It is based on T3 Stack with a few very subjective modifications.

Simply cloning the project, and configuring the environment variables, you should be able to start without any problem.

More details here: https://twitter.com/serudda/status/1653172466725064705?s=20


Installation

Manual Installation

Here are the steps to execute the project:

  1. Clone the repo

    git clone https://github.com/Indie-Creator-Community/side-project-starter-kit.git
  2. Install NPM packages

    pnpm install
  3. You will find an .env.example file, where you will see the basic variables for the project to work.

    DISCORD_CLIENT_ID= 'ENTER YOUR CLIENT ID';

    4.1 (Optional) Generate Local Database Before proceeding, please ensure that Docker is installed and docker's daemon is running on your system. If you don't have Docker, you will need to install it.

    To generate a local database, execute the following command:

    pnpm db:docker:startup
    

    This command will create a local database using Docker. Please note that you will need to modify the DATABASE_URL variable in your .env.* file to point to this local database.

    If you need to shut down the database at any time, you can do so by executing the following command:

    pnpm db:docker:shutdown
    

    This will safely shut down the Docker database. Remember to update your DATABASE_URL if you switch back to another database.

  4. This project uses an .env file depending on the environment in which the app is running.

    local: .env.local development: .env.development production: .env.production

  5. To make a build of all apps and packages

    pnpm build
  6. Run the apps/nextjs

    pnpm dev

(back to top)

Docker Installation

  1. Clone the repo
    git clone https://github.com/Indie-Creator-Community/side-project-starter-kit.git
  2. Change .env.template to .env.local and change the DATABASE_URL
    DATABASE_URL="postgresql://root:admin@postgres:5432/started-db?schema=public"
  3. execute the following statement
    pnpm app:docker:startup
  4. to shut down the application
    pnpm app:docker:shutdown

side-project-starter-kit's People

Contributors

ksreyr avatar serudda avatar zyruks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

side-project-starter-kit's Issues

Incomplete Husky Configuration: Missing Prepare Script

What problem would you like to solve or improve?

Currently, the Husky configuration in the project is incomplete, specifically regarding the missing prepare script. This issue prevents the desired behavior of the prepare script from being executed as expected.

Describe your proposed solution or enhancement.

To address this issue, we need to add the prepare script to the project's package.json file. The prepare script is a convenient way to define and execute tasks before committing code changes.

Describe any alternative solutions you've considered (optional).

No response

Additional context or information (optional).

By adding the prepare script to the package.json, Husky will automatically run the specified command or script before committing code. This ensures that important tasks, such as linting and formatting, are performed consistently, leading to a cleaner codebase.

Remember to test the updated configuration by making a sample commit to verify that the desired actions are triggered successfully.

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Generate local database with docker

What problem does your feature request solve?

with this feature won't be needed the handle of supabase in order to create a database for the project

Describe the solution you'd like

With docker compose is possible to run a local db and use it for development

Describe alternatives you've considered

none, docker is the perfect

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Dockerization

What problem does your feature request solve?

Beginners may face difficulty in running the project without prior knowledge of the project dependencies and setup.

Describe the solution you'd like

Add Docker support to the project, which will simplify the setup process and make it easier to run the project.

Describe alternatives you've considered

None, as Docker is the most suitable and widely used solution for simplifying the setup and configuration of projects.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

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.