Skip to content

Simplifying receiving and giving job referrals for absolutely everyone ! ๐Ÿ’ผ ( ๐˜ฎ๐˜ข๐˜ฅ๐˜ฆ ๐˜ฑ๐˜ถ๐˜ฃ๐˜ญ๐˜ช๐˜ค ๐˜ฐ๐˜ฏ 23๐˜ต๐˜ฉ June 2024 )

License

Notifications You must be signed in to change notification settings

sayandedotcom/refhired.com

Repository files navigation

Logo

Refhired.com

Hire and apply only through referrals !
Learn more ยป

Website ยท Issues

This is a solo project by Sayan De.

Architecture

image

Contributing

Guidelines for contributing can be found in CONTRIBUTING.md.

Main domains

Domain Tech Version
Repository Tool Turborepo 1.9
Primary Language TypeScript 4.5
Front-End Next.js 14+
Back-End Node.js 20.9.0
API GraphQL with Apollo -
Authentication Next-Auth 4
Styling Tailwind CSS 3.3
Database ORM Prisma 4.15
Primary Database PostgreSQL 15.3
Caching Database Redis -
Unit Testing Vitest 0.33.0
End to end Testing Playwright 1.36.2
Containerization Docker -
CI/CD GitHub Actions -
Deployment Franework SST 2+
Deployment AWS -
Front-End Deployment AWS Lambda & S3 -
Back-End Deployment AWS Lambda -
Database Deployment AWS Aurora Postgres -
Cache Database Deployment AWS ElastiCache -
Static Assests AWS S3 -
CDN AWS CloudFront -
Routing AWS Route 53 -
Version Control GitHub -
Code Editor VS Code -

Workspaces List

Index No. Workspace/Folder Info. Name Navigate Port
apps /
1 api For API Server @refhiredcom/api yarn api 8000
2 blogs For blogs @refhiredcom/blogs yarn blogs -
3 desktop For desktop app @refhiredcom/desktop yarn desktop -
4 docs For docs @refhiredcom/docs yarn docs -
5 mobile For mobile app @refhiredcom/mobile yarn mobile -
6 storybook For Storybook @referrer/storybook yarn story 6006
7 swagger For desktop app @refhiredcom/desktop yarn desktop -
8 web For main website @referrer/web yarn web 3000

Things I am stuck with

Using the latest Next.js 14 -Using the latest Next.js 14 comes with a cost. Every library has some special and different configurations for the latest Next.js versions, especially versions above 13. I am currently stuck with a bug in next-intl which is breaking the parallel and intercepting route in productions, and another problem is with the Apollo Client. The bug is you have to encrypt and then pass cookies to the Apollo wrapper component and then decrypt and pass the cookies to the Apollo server.

Deploying with SSTโ€Š-โ€ŠI decided to transition the deployment platform from Vercel to AWS to gain more control over resources and reduce costs, with the assistance of the Serverless Stack (SST) framework. But here I got stuck! SST has no guide on how to deploy a turborepo ( I did it by tinkering ) and currently, I am stuck in using Prisma to create tables in AWS Aurora & then place them in the lambda layer.

Deployment Costโ€Š-โ€ŠAWS Aurora Database for 2 days cost me $0.35! with only 2 test users. It will become difficult for me to bear the cost of deployment.

Features

  1. Job referrals to top companies
  2. Manage referrals requests
  3. Easy apply to jobs referrals
  4. Desktop App
  5. Mobile App

Getting Started

To get a local copy up and running, please follow these simple steps. These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Here is what you need to be able to run Cal.com.

  • Node.js (Version: >=18.x)
  • Git
  • Docker and Docker Compose
  • Yarn (recommended)

Development

Setup

  1. Clone the repo into a public GitHub repository (or fork https://github.com/sayandedotcom/refhired.com/fork). If you plan to distribute the code, keep the source code public to comply with AGPLv3.

    git clone https://github.com/sayandedotcom/refhired.com
  2. Go to the project folder

    cd refhired.com
  3. Install packages with yarn

    yarn
  4. Set up your .env file

    • Duplicate .env.example to .env
    • Use openssl rand -base64 32 to generate a key and add it under NEXTAUTH_SECRET in the .env file.
  5. Quick start with yarn dx This will run the docker compose file in the root directory from the docker image build from @refhired.com/web on http://localhost:3000/ and docker image build from @refhired.com/prisma (database) on http://localhost:5432/ and adminar on http://localhost:8080/

  • Requires Docker and Docker Compose to be installed
yarn dx
  1. Once your server has started, go to this url http://localhost:3000/ and you will see the website running on a Development Server.

License

-MIT license

Contact ๐Ÿ“ฌ

For any query, email [email protected].

Thanks!

About

Simplifying receiving and giving job referrals for absolutely everyone ! ๐Ÿ’ผ ( ๐˜ฎ๐˜ข๐˜ฅ๐˜ฆ ๐˜ฑ๐˜ถ๐˜ฃ๐˜ญ๐˜ช๐˜ค ๐˜ฐ๐˜ฏ 23๐˜ต๐˜ฉ June 2024 )

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published