diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 3edecfe1b6..0000000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,37 +0,0 @@ -# This is a comment. -# Each line is a file pattern followed by one or more owners. - -# These owners will be the default owners for everything in -# the repo. Unless a later match takes precedence, -# @global-owner1 and @global-owner2 will be requested for -# review when someone opens a pull request. -# ⬇️ Removed so we can manually trigger checks -# * @calcom/reviewers - -.github/ @calcom/core -.husky/ @calcom/core -.vcode/ @calcom/core -.snaplet/ @calcom/core -deploy/ @calcom/core -scripts/ @calcom/core - -apps/docs @calcom/docs -apps/swagger @calcom/docs - -packages/app-store-cli @hariombalhara @calcom/core -packages/dayjs @zomars @calcom/core -packages/emails @zomars @calcom/core -packages/embeds @hariombalhara @calcom/core -packages/eslint-plugin @zomars @calcom/core -packages/features @zomars @calcom/core -packages/features/kbar @alishaz-polymath @calcom/core -packages/features/ee/impersonation @sean-brydon @calcom/core -packages/features/ee/payments @alannnc @calcom/core -packages/features/ee/workflows @CarinaWolli @calcom/core -packages/features/tips @PeerRich @calcom/core -# Trivial changes should be mergeable by core team as well -# Major UI changes must be reviewed by UI team -# Critical changes even if major can still be merged by core team if needed. -packages/ui @calcom/ui @calcom/core -packages/config @calcom/core -packages/app-store/routing-forms @hariombalhara @calcom/core diff --git a/.gitignore b/.gitignore index 28ce05562d..a89fca99ab 100644 --- a/.gitignore +++ b/.gitignore @@ -84,7 +84,6 @@ apps/storybook/build-storybook.log # Submodules .gitmodules -apps/api apps/website apps/console apps/auth diff --git a/.prettierignore b/.prettierignore index 7944833941..013d82b3a2 100644 --- a/.prettierignore +++ b/.prettierignore @@ -7,6 +7,7 @@ public *.lock *.log +*.test.ts .gitignore .npmignore diff --git a/apps/api/.env.example b/apps/api/.env.example new file mode 100644 index 0000000000..c5354bfd7d --- /dev/null +++ b/apps/api/.env.example @@ -0,0 +1,6 @@ +API_KEY_PREFIX=cal_ +DATABASE_URL="postgresql://postgres:@localhost:5450/calendso" +NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000 + +# Get it in console.cal.com +CALCOM_LICENSE_KEY="" diff --git a/apps/api/.eslintrc.js b/apps/api/.eslintrc.js new file mode 100644 index 0000000000..0e71ec1eae --- /dev/null +++ b/apps/api/.eslintrc.js @@ -0,0 +1 @@ +module.exports = require("@calcom/config/eslint-preset"); diff --git a/apps/api/.gitignore b/apps/api/.gitignore new file mode 100644 index 0000000000..a2c49f1abb --- /dev/null +++ b/apps/api/.gitignore @@ -0,0 +1,81 @@ +# .env file +.env + +# dependencies +node_modules +.pnp +.pnp.js + +# testing +coverage +/test-results/ +playwright/videos +playwright/screenshots +playwright/artifacts +playwright/results +playwright/reports/* + +# next.js +.next/ +out/ +build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# local env files +.env.local +.env.development.local +.env.test.local +.env.production.local +.env.* +!.env.example + +# vercel +.vercel + +# Webstorm +.idea + +### VisualStudioCode template +.vscode/ +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Typescript +tsconfig.tsbuildinfo + +# turbo +.turbo + +# Prisma-Zod +packages/prisma/zod/*.ts + +# Builds +dist + +# Linting +lint-results + +# Yarn +yarn-error.log + +.turbo +.next +.husky +.vscode +.env \ No newline at end of file diff --git a/apps/docs/README.md b/apps/api/.gitkeep similarity index 100% rename from apps/docs/README.md rename to apps/api/.gitkeep diff --git a/apps/api/.prettierignore b/apps/api/.prettierignore new file mode 100644 index 0000000000..745ffcee46 --- /dev/null +++ b/apps/api/.prettierignore @@ -0,0 +1,5 @@ +.next/ +coverage/ +node_modules/ +tests/ +templates/ \ No newline at end of file diff --git a/apps/api/README.md b/apps/api/README.md new file mode 100644 index 0000000000..bd9217ba09 --- /dev/null +++ b/apps/api/README.md @@ -0,0 +1,225 @@ + +
+
+
+ Read the API docs
+| Message | + *Cause | + *
| Booking not found | + *The provided id didn't correspond to any existing booking. | + *
| Cannot cancel past events | + *The provided id matched an existing booking with a past startDate. | + *
| User not found | + *The userId did not matched an existing user. | + *
| Message | + *Cause | + *
| Booking body is invalid | + *Missing property on booking entity. | + *
| Invalid eventTypeId | + *The provided eventTypeId does not exist. | + *
| Missing recurringCount | + *The eventType is recurring, and no recurringCount was passed. | + *
| Invalid recurringCount | + *The provided recurringCount is greater than the eventType recurring config | + *
-
- 3. In your new app, go to `Overview` and next to `Installed add-ons`, click `Configure Add-ons`. We need this to set up our database.
- 
-
- 4. Once you clicked on `Configure Add-ons`, click on `Find more add-ons` and search for `postgres`. One of the options will be `Heroku Postgres` - click on that option.
- 
-
- 5. Once the pop-up appears, click `Submit Order Form` - plan name should be `Hobby Dev - Free`.
-
-
-
- 6. Once you completed the above steps, click on your newly created `Heroku Postgres` and go to its `Settings`.
- 
-
- 7. In `Settings`, copy your URI to your Cal.com .env file and replace the `postgresql://- {eventType.title} -
-