Skip to content

apptension/ALPack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ALPack

πŸš€ ALPack

aka Apptension Light Pack ;)

Welcome to our all-in-one solution for building efficient web applications using some of the hottest technologies right now!

Version License Follow Us on Twitter Chat with us on Discord

🌟 Features

  • GraphQL API: Cutting-edge data query and manipulation.
  • Authentication and Authorization: Ensure your app's security.
  • Emails with React: Dynamic email generation has never been easier.
  • Mantine UI: A modern, responsive user interface built with Mantine.

πŸ”§ Tech Stack

We've handpicked the following stack for optimal performance, scalability, and developer experience:

πŸ— Infrastructure

  • Seamless Vercel Deployment
  • Streamlined CI/CD with GitHub Actions or Bitbucket Pipelines
  • Docker integration for development environment

πŸš€ Getting Started

  1. Clone the repository.
  2. Generate Google OAuth credentials (default correct authorized URL should be set to: http://localhost:3000/api/auth/callback/google).
  3. Prepare .env and apps/app/.env files based on the .env.shared examples. Fill them with Google OAuth credentials.
  4. Install dependencies: pnpm install
  5. Create Docker container: docker volume create {PROJECT_NAME}-web-backend-db-data. PROJECT_NAME needs to be the same as set in .env file in step 3.
  6. Launch Docker: docker compose up -d
  7. Fire up the Next.js app: pnpm nx run app:serve
  8. Dive in! Visit https://localhost:3000 and start coding.

πŸ“‚ Project Structure

.
β”œβ”€β”€ ...
β”œβ”€β”€ apps                    # Primary directory for Next.js apps
β”‚   └── app                 # Main Next.js web application - landing page & application
β”œβ”€β”€ packages                # Directory for shared packages
β”‚   β”œβ”€β”€ api-client          # Apollo Client and FE schema configuration
β”‚   β”œβ”€β”€ core                # Core components and providers
β”‚   β”œβ”€β”€ emails              # React-email components
β”‚   β”œβ”€β”€ graphql-api         # ORM models and GraphQL API schema
β”‚   └── internal            # Internal packages directory
└── ...

βš™οΈ Commands

  • Run Locally:

    • Start Docker: docker compose up -d
    • Start Next.js app: pnpm nx run app:serve
  • Storybooks: pnpm nx run app:storybook

  • Tests: Check test and test:watch scripts in package.json.

  • πŸ—‚ Migrations:

    • Create new empty migration: packages/schema > pnpm run db:createmigration src/migrations/[migration_name]
    • Generate new migration based on the db changes: packages/schema > pnpm run db:makemigrations src/migrations/[migration_name]
    • Execute migrations: packages/schema > pnpm run db:migrate
    • Create initial migration:: packages/schema > pnpm run typeorm migration:generate -d ./src/data-source.ts src/migrations/init

πŸ’Œ Emails

Run local development server

⚠️ Be aware that command below might fail for a first time in your pnpm workspace according to the react-email GitHub issue. To solve it you might need to run yarn install in the packages/emails/.react-email directory.

packages/emails > pnpm dev

πŸš€ Deployment

  1. Go to Vercel and create a team
  2. Create a Postgres Database storage. Make sure to use POSTGRES environment variables prefix.
  3. Create a project with:
    • Root directory set to: apps/app
    • Next.js set up as Framework preset
  4. Create a Google OAuth credentials with the correct redirect url (https://{VERCEL_DOMAIN}/api/auth/callback/google)
  5. Add environment variables to in the app Settings tab
  6. Assign the postgres storage to the project

πŸ”— Useful Documentation


🌍 Who are we?

We're Apptension, a team that turns ideas into world-class software using expertise in technology, design, and product management. We work with founders, investors, and creative agencies to help them bring uncommon ideas to the market.

Our partners value our outside-the-box thinking, clear and honest communication, and reliability – even in the most dynamic and time-compressed projects. Among our clients – plenty of early-stage startups, as well as international tech behemoths like Netflix and Uber. We live and breathe tech – and we're darn good at it.

To bring even more value to our partners, we create bespoke tools (like SaaS Boilerplate and ALPack), allowing us to shorten time-to-market while avoiding technical debt.

License

ALPack is licensed under the MIT License.

Contributing to ALPack project

We welcome contributions from anyone interested in improving ALPack. Please keep in mind that this project follows a Code of Conduct to ensure a welcoming community for all.

For more detailed information on how to contribute to this project, please refer to our Contributing Guide.

If you have any questions about contributing, please join our Discord server - we are happy to help you!

Thank you for considering contributing to ALPack!