sms-tps 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "backend-project",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "license": "ISC",
6
+ "author": "",
7
+ "type": "module",
8
+ "main": "server.js",
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "dependencies": {
13
+ "bcryptjs": "^3.0.3",
14
+ "cors": "^2.8.6",
15
+ "dotenv": "^17.4.2",
16
+ "express": "^5.2.1",
17
+ "jsonwebtoken": "^9.0.3",
18
+ "mongoose": "^9.6.3",
19
+ "nodemon": "^3.1.14",
20
+ "tps-make": "^1.0.2"
21
+ }
22
+ }
@@ -0,0 +1,36 @@
1
+ import express from "express";
2
+ import cors from "cors";
3
+ import "dotenv/config";
4
+ import db_conn from "./Config/db.js";
5
+ import { userRouter } from "./Router/UserRouter.js";
6
+
7
+
8
+ // Prepare Express Enviroment Function
9
+ const app = express();
10
+ app.use(express.json());
11
+
12
+ // Declare Cors : Allowed Client Connection
13
+ const client_url = [process.env.CLIENT_URL];
14
+ app.use(
15
+ cors({
16
+ origin: client_url,
17
+ credentials: true,
18
+ }),
19
+ );
20
+
21
+ // Listen Server API Running PORT/URL
22
+ const port = process.env.PORT;
23
+ app.listen(port, () => {
24
+ console.log(`Server Running Success On http://localhost:${port}`);
25
+ });
26
+
27
+ // Declare Database Connection Function
28
+ db_conn();
29
+
30
+ // Test Server API Router
31
+ app.get("/", (req, res) => {
32
+ res.send("Server API Working Well");
33
+ });
34
+
35
+
36
+ app.use("/api/user", userRouter);
@@ -0,0 +1,16 @@
1
+ # React + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
9
+
10
+ ## React Compiler
11
+
12
+ The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
13
+
14
+ ## Expanding the ESLint configuration
15
+
16
+ If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
@@ -0,0 +1,21 @@
1
+ import js from '@eslint/js'
2
+ import globals from 'globals'
3
+ import reactHooks from 'eslint-plugin-react-hooks'
4
+ import reactRefresh from 'eslint-plugin-react-refresh'
5
+ import { defineConfig, globalIgnores } from 'eslint/config'
6
+
7
+ export default defineConfig([
8
+ globalIgnores(['dist']),
9
+ {
10
+ files: ['**/*.{js,jsx}'],
11
+ extends: [
12
+ js.configs.recommended,
13
+ reactHooks.configs.flat.recommended,
14
+ reactRefresh.configs.vite,
15
+ ],
16
+ languageOptions: {
17
+ globals: globals.browser,
18
+ parserOptions: { ecmaFeatures: { jsx: true } },
19
+ },
20
+ },
21
+ ])
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>frontend-project</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.jsx"></script>
12
+ </body>
13
+ </html>