βββ src/
β βββ auth/
β β βββ auth.controller.ts
β β βββ auth.module.ts
β β βββ auth.service.ts
β β βββ jwt.strategy.ts
β β βββ dto/
β β β βββ login.dto.ts
β β β βββ register-tenant.dto.ts
This file contains hidden or 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
| module.exports = { | |
| project: { | |
| ios: {}, | |
| android: {}, | |
| }, | |
| assets: ['./assets/fonts'] | |
| }; |
This file contains hidden or 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
| import {View, Text, StyleSheet} from 'react-native'; | |
| import React from 'react'; | |
| const App = () => { | |
| return ( | |
| <View style={styles.container}> | |
| <Text style={styles.text}>App</Text> | |
| <Text style={styles.containerText}>App</Text> | |
| </View> | |
| ); |
This file contains hidden or 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
| // Settings Screen | |
| import { StyleSheet, Text, View } from "react-native"; | |
| import React from "react"; | |
| import { createStackNavigator } from "@react-navigation/stack"; | |
| const Stack = createStackNavigator(); | |
| const Settings = () => ( | |
| <View style={styles.container}> | |
| <Text>Settings</Text> |
This file contains hidden or 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
| import { Controller, Post, Body } from '@nestjs/common'; | |
| import { AuthService } from './auth.service'; | |
| import { LoginDto } from './dto/login.dto'; | |
| import { RegisterTenantDto } from './dto/register-tenant.dto'; | |
| @Controller('auth') | |
| export class AuthController { | |
| constructor(private readonly authService: AuthService) {} | |
| @Post('register-tenant') |
This file contains hidden or 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
| import { IsEmail, IsString } from 'class-validator'; | |
| export class CreateUserDto { | |
| @IsEmail() | |
| email: string; | |
| @IsString() | |
| firstName: string; | |
| @IsString() |
This file contains hidden or 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
| import { | |
| Controller, | |
| Get, | |
| Post, | |
| Body, | |
| Param, | |
| Delete, | |
| UseGuards, | |
| } from '@nestjs/common'; | |
| import { ProductService } from './product.service'; |
This file contains hidden or 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
| import { Controller, Post, Get, Param, Body } from '@nestjs/common'; | |
| import { OrderService } from './order.service'; | |
| import { CreateOrderDto } from './order.dto'; | |
| import { CurrentTenant } from '../tenants/tenant.decorator'; | |
| import { Tenant } from '../tenants/tenant.entity'; | |
| @Controller('orders') | |
| export class OrderController { | |
| constructor(private readonly orderService: OrderService) {} |
OlderNewer