Inspiration

I was watching a video of youtuber named harkirat singh. He was talking about making project by yourself and not going into tutorial hell. He suggested that If you want to get out of the tutorial hell, ask you seniors who had created project, ask them to give you bunch of questions and implementations of those questions must be less than or equal to 100 lines. You have to solve those questions by yourself, search on google, try different methods etc etc. So i thought i can make a website which can do this.

What it does

It asks for Project Idea we want to build and Tech stack in which we want to build the project. When we submit it, it gives us 10-20 questions which we can work upon and make project by solving those questions.

How we built it

  • We can put it into some steps.

a. Project Setup

  • We used NextJS for Frontend and Backend and used Chakra UI for the Design.

b. Building Backend

  • We created 2 API endpoints. (i) generate: it generates the output for the idea we provides and (ii) if we want more tokens, then you can buy it. we used stripe for accepting payments. and for database to store tokens, we are using google firebase.

c. Building frontend

  • Frontend was easy part. We knew what we needed to build.

d. Deploying Project

  • Because of some challenges we weren't able to deploy on Vercel, so i had to delete the project and put the one part of backend on firebase cloud function.

Challenges we ran into

  • I was using older version of nextjs so i didn't know that they have changed routes directory. so i spent hours try by myself, and after that saw the docs and found the solution.
  • I was using vercel for api routes. but problem that occurred was i was calling open ai API, and it was taking more than 20 seconds for each request we made, but vercel didn't support requests which take more than 10 seconds. So i searched on the internet for that solution. and found out that we had to pay for the pro pack in vercel. So i had to push backend to some other service and i chose to go with google cloud functions. I didn't know how it worked. So looked up on the internet how to work with it. watched a tutorial or two. copied and pasted code we already wrote. pushed the backend to firebase and it worked.
  • I had problem updating user data, i was using automated document id for firebase database, so i had to query through whole database everytime i wanted to add something. instead i changed everything and wrote userid which came with firebase-auth as document id for each user. with user id as document id, it made coding easy and also faster to fetch and update data in database.

Accomplishments that we're proud of

  • This project is going to be my first side hustle
  • I overcame all the problems that i had and integrated payments api.

What we learned

  • I learned how to use Open AI API.
  • I learned how to use Stripe API.
  • I learned how to use Google Cloud functions.
  • How to manage anger while things doesn't work out.
  • How to deploy on vercel and cloud functions.

What's next for AIJect

For AIJect, I am planning to it make it my part-time Side Hustle, and i will start marketing the product via twitter and youtube. I already had made the script for the youtube video, and i will be asking my fellow twitter friends to use it give reviews in public. AIJect is going to be my first side hustle so i will be trying my best to reach as many people as possible.

Built With

Share this project:

Updates