keyshade-xyz / keyshade

Realtime secret and configuration management tool, with the best in class security and seamless integration support
https://keyshade.xyz
Mozilla Public License 2.0
131 stars 68 forks source link

PLATFORM: Add create new project #244

Open kriptonian1 opened 1 month ago

kriptonian1 commented 1 month ago

Description

Implement a “create new project” functionality in the dashboard of the platform. The created new project should be immediately updated in the project dashboard. Some part of create new project is done, which can find in apps/platform/src/app/(main)/page.tsx.

Scope of work

You have to implement 2 features from create new project.

  1. Add environment for the project, by default there is an environment named default. In the array of object environment, there should be only one default workspace. And user can add as many environments as they want.
  2. After sending the environment request. The project dashboard should auto refresh to show the recently added project.

Postman URL

Type of new project and environment

https://github.com/keyshade-xyz/keyshade/blob/f3a36326b4f5c945fb2725620ff92ab31e44e053/apps/platform/src/types/index.ts#L43-L54

Dialog for create new project

https://github.com/keyshade-xyz/keyshade/blob/f3a36326b4f5c945fb2725620ff92ab31e44e053/apps/platform/src/app/(main)/page.tsx#L116-L187

ayan-joshi commented 2 weeks ago

@kriptonian1 @rajdip-b I would like to work on this issue can u assign me under FOSS HACK

rajdip-b commented 2 weeks ago

Sure!

kriptonian1 commented 1 week ago

@ayan-joshi best of luck buddy, let me know if you need any help

ayan-joshi commented 1 week ago

@kriptonian1 there is postman url attached which is not opening will I need it for my work ?

Create project

rajdip-b commented 1 week ago

@kriptonian1 there is postman url attached which is not opening will I need it for my work ?

Create project

Yeap! Here's the updated link: https://www.postman.com/keyshade/workspace/keyshade

ayan-joshi commented 5 days ago

@rajdip-b I have a question , for this pr I would need to setup all 4 ports and can u help me with project setting up

rajdip-b commented 4 days ago

Hey @ayan-joshi! You can refer to our docs to understand how to set things up: https://docs.keyshade.xyz/contributing-to-keyshade/summary

ayan-joshi commented 4 days ago

@rajdip-b I got it running locally , how to pass through auth page can u help?

rajdip-b commented 4 days ago

You would need to sign up like usual. Make sure the API is running.

kriptonian1 commented 22 hours ago

Hey @ayan-joshi, you need to run the API server and the platform simultaneously, and you need to create a .env file inside the platform and there add NEXT_PUBLIC_BACKEND_URL=http://localhost:4200

ayan-joshi commented 19 hours ago

NEXT_PUBLIC_BACKEND_URL=http://localhost:4200

@kriptonian1 Yes I have done it already , I have got docker running , api is running too but I cant go past the auth page

kriptonian1 commented 18 hours ago

Can you show the errors in console

ayan-joshi commented 16 hours ago

Can you show the errors in console

image

kriptonian1 commented 11 hours ago

Can you show the errors in console

image

Are you running the api in parallel ?

ayan-joshi commented 9 hours ago

Can you show the errors in console

image

Are you running the api in parallel ?

yes

kriptonian1 commented 9 hours ago

If you are free then maybe we can get on a call tomorrow

rajdip-b commented 9 hours ago

This is related to error in your SMTP creds if im not wrong. I would advise you to call the endpoint from postman once

Can you show the errors in console

image