Skip to content

pranava-mohan/orsive

Repository files navigation


Orsive

🚀An open source Social Media Platform🚀

Typescript ExpressJS GraphQL Prisma Next.Js React Tailwind CSS

MongoDB DigitalOcean Firebase Vercel

Apps and Packages🛠️

  • web: a Next.js app
  • api: a GraphQL API made with apollo-server
  • belly: a storage engine to handle file uploads for Local file storage and S3 cloud upload
  • config: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo

All packages and apps are 100% TypeScript

How to run locally👨‍💻?

Click here

Extras

  1. Orsive's first post

  2. If you notice cache problems when using apollo client for infinite scroll, use useClearApolloCacheOnExit hook present in apps\web\hooks\app\useClearApolloCacheOnExit.tsx

Utilities

This turborepo has some additional tools already setup for you:

Remote Caching

Turborepo can use a technique known as Remote Caching (Beta) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching (Beta) you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:

npx turbo login

This will authenticate the Turborepo CLI with your Vercel account.

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:

npx turbo link