-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7605b5
commit 4f66864
Showing
98 changed files
with
16,576 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
PORT="3000" | ||
|
||
DATABASE_URL="mysql://jjprinti_landing:4N,O2rmT&[email protected]:3306/jjprinti_pruebalanding" | ||
MYSQL_DATABASE="jjprinti_pruebalanding" | ||
MYSQL_USER="jjprinti_landing" | ||
MYSQL_PASSWORD="4N,O2rmT&52r" | ||
MYSQL_PORT="3306" | ||
MYSQL_HOST="ehjdcj.cpserver.com" | ||
|
||
|
||
NEXTAUTH_URL="https://fitvibesgym.com" | ||
NEXT_PUBLIC_APP_URL="https://fitvibesgym.com" | ||
NODE_ENV="production" | ||
# NEXTAUTH_URL="http://localhost:3000" | ||
# NEXT_PUBLIC_APP_URL="http://localhost:3000" | ||
|
||
#test banbajio | ||
# NEXT_PUBLIC_URL_PAYMENT="eu-test.oppwa.com" | ||
# NEXT_PUBLIC_ENTITYID="8ac7a4c78fcb84af018fcbb51ce70029" | ||
# NEXT_PUBLIC_IDDESCRIPTION="9378482" | ||
# NEXT_PUBLIC_TOKEN_PAYMENT="Bearer OGFjN2E0Yzc4ZmNiODRhZjAxOGZjYmIzYWMyMTAwMjV8bnRrU2RHTmRZako4Yk5BWQ==" | ||
|
||
# ---------------------------- produccion banbajio -------------------------------------- | ||
NEXT_PUBLIC_URL_PAYMENT="eu-prod.oppwa.com" | ||
NEXT_PUBLIC_ENTITYID="8ac9a4c790a122400190b47ba25c404a" | ||
NEXT_PUBLIC_IDDESCRIPTION="9378482" | ||
NEXT_PUBLIC_TOKEN_PAYMENT="Bearer OGFjOWE0Yzc5MGExMjI0MDAxOTBiNDdiMjIwZjQwNDZ8YmVmWXhKM2U3UkNnRUNtVw==" | ||
|
||
AUTH_SECRET="5FfFOy0rsX3EVVIsrAmSQk/ca5+V7SCzkGZ6zrutNBA=" | ||
|
||
|
||
MAIL_USER="[email protected]" | ||
MAIL_PASS="wE&485A9>4Ii" | ||
MAIL_HOST="smtpout.secureserver.net" | ||
MAIL_PORT="465" | ||
|
||
MAILER_SERVER="http://88.99.90.19:5001" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
path/to/Landing[[:space:]]JJ.zip filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
README.example.md | ||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
.env | ||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,38 @@ | ||
# FitvibesGym | ||
## Full servicio de Autenticación - Next 14 | ||
|
||
## Usecase | ||
[https://FitvibesGym.vercel.app/](https://FitvibesGym.vercel.app/) | ||
|
||
` | ||
This project was used folowing skillset: | ||
- next.js | ||
- laravel | ||
- nodemailer | ||
` | ||
Proyecto Next.js 14 con Autenticación | ||
|
||
1. lalal | ||
2. ererer | ||
3. dfdfdfdf | ||
## Tecnologías | ||
- Next.js 14 | ||
- TypeScript | ||
- Prisma | ||
- NextAuth | ||
- React Hook Form | ||
- TailwindCSS | ||
- Shadcn UI | ||
|
||
'ererer | ||
ererer | ||
Ererer' | ||
## Instalación | ||
1. Crear copia del archivo ```.env.example```del proyecto next.js y laravel, y asignar valores | ||
2. Ejecutar ```npm install``` | ||
3. Levantar la base de datos | ||
4. Correr las migraciones ```npx prisma migrate dev``` | ||
6. Ejecutar ```npm run dev``` | ||
7. npx prisma generate | ||
8. Ejecutar ```yarn dev``` | ||
|
||
|
||
## Presentación | ||
|
||
 | ||
|
||
 | ||
|
||
 | ||
|
||
 | ||
|
||
 | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": true, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "src/app/globals.css", | ||
"baseColor": "slate", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components/shadcn", | ||
"utils": "@/lib/utils" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module.exports = { | ||
apps: [ | ||
{ | ||
name: 'Fitvibes Gym', | ||
script: 'npm run start', | ||
watch: false, | ||
max_memory_restart: '1000M', | ||
exec_mode: 'cluster', | ||
instances: 1, | ||
cron_restart: '59 23 * * *', | ||
env: { | ||
NODE_ENV: 'production' // development or production | ||
} | ||
} | ||
] | ||
|
||
} | ||
|
||
module.exports = { | ||
async rewrites() { | ||
return [ | ||
{ | ||
source: '/reservar/:id', | ||
destination: 'http://localhost:8000/reservar/:id', | ||
}, | ||
]; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import NextAuth, { type DefaultSession } from "next-auth" | ||
|
||
export type ExtendedUser = DefaultSession['user'] & { | ||
id: number | ||
roleId: number | ||
isTwoFactorEnabled: boolean | ||
isOAuth: boolean | ||
} | ||
declare module "next-auth" { | ||
interface Session { | ||
user: ExtendedUser | ||
} | ||
} | ||
|
||
import {JWT} from "next-auth/jwt" | ||
declare module "next-auth/jwt" { | ||
interface JWT { | ||
roleId: number | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
compiler: { | ||
styledComponents: true | ||
}, | ||
images: { | ||
remotePatterns: [ | ||
{ | ||
hostname: 'res.cloudinary.com', | ||
protocol: 'https', | ||
}, | ||
{ | ||
hostname: 'lh3.googleusercontent.com', | ||
protocol: 'https', | ||
} | ||
|
||
] | ||
}, | ||
webpack: (config, { isServer }) => { | ||
if (!isServer) { | ||
config.resolve.alias['jquery'] = 'jquery'; | ||
} | ||
return config; | ||
}, | ||
}; | ||
|
||
export default nextConfig; |
Oops, something went wrong.