Skip to content

Commit

Permalink
feat; build next basic
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixdev0117 committed Dec 10, 2024
1 parent c7605b5 commit 4f66864
Show file tree
Hide file tree
Showing 98 changed files with 16,576 additions and 14 deletions.
37 changes: 37 additions & 0 deletions .env.example
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"
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
1 change: 1 addition & 0 deletions .gitattributes
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
35 changes: 35 additions & 0 deletions .gitignore copy
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
48 changes: 34 additions & 14 deletions README.md
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

![Pagina Home](https://github.com/ZitelliDZ/autenticacion-next/blob/main/presentacion/1.png?raw=true)

![Login Modal](https://github.com/ZitelliDZ/autenticacion-next/blob/main/presentacion/2.png?raw=true)

![Login Page](https://github.com/ZitelliDZ/autenticacion-next/blob/main/presentacion/3.png?raw=true)

![Register Page](https://github.com/ZitelliDZ/autenticacion-next/blob/main/presentacion/4.png?raw=true)

![Reset Password](https://github.com/ZitelliDZ/autenticacion-next/blob/main/presentacion/5.png?raw=true)

![Auth 2f](https://github.com/ZitelliDZ/autenticacion-next/blob/main/presentacion/6.png?raw=true)
17 changes: 17 additions & 0 deletions components.json
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"
}
}
28 changes: 28 additions & 0 deletions ecosystem.config.cjs
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',
},
];
},
};
21 changes: 21 additions & 0 deletions next-auth.d.ts
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
}
}

5 changes: 5 additions & 0 deletions next-env.d.ts
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.
27 changes: 27 additions & 0 deletions next.config.mjs
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;
Loading

0 comments on commit 4f66864

Please sign in to comment.