feat: Complete Internship Training App - Full Stack LMS by Sujitkarad · Pull Request #17272 · react/create-react-app · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
759 changes: 759 additions & 0 deletions API_DOCUMENTATION.md

Large diffs are not rendered by default.

472 changes: 472 additions & 0 deletions PROJECT_SUMMARY.md

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions SETUP_GUIDE.md
24 changes: 24 additions & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Database
MONGODB_URI=mongodb://localhost:27017/internship-training
MONGODB_TEST_URI=mongodb://localhost:27017/internship-training-test

# Server
PORT=5000
NODE_ENV=development

# JWT
JWT_SECRET=your_jwt_secret_key_change_in_production
JWT_EXPIRATION=7d

# CORS
CORS_ORIGIN=http://localhost:3000

# File Upload
MAX_FILE_SIZE=10485760
UPLOAD_DIR=./uploads

# Email (optional)
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=your_email@example.com
SMTP_PASSWORD=your_password
15 changes: 15 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18-alpine

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

EXPOSE 5000

CMD ["npm", "start"]
48 changes: 48 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "internship-training-backend",
"version": "1.0.0",
"description": "Backend API for Internship Training App",
"main": "src/server.ts",
"scripts": {
"dev": "nodemon src/server.ts",
"build": "tsc",
"start": "node dist/server.js",
"lint": "eslint src --ext .ts",
"test": "jest",
"seed": "ts-node src/seeds/seed.ts"
},
"keywords": [
"internship",
"training",
"api"
],
"author": "",
"license": "MIT",
"dependencies": {
"express": "^4.18.2",
"mongoose": "^7.0.0",
"dotenv": "^16.0.3",
"bcryptjs": "^2.4.3",
"jsonwebtoken": "^9.0.0",
"cors": "^2.8.5",
"helmet": "^7.0.0",
"express-validator": "^7.0.0",
"multer": "^1.4.5-lts.1",
"axios": "^1.4.0"
},
"devDependencies": {
"@types/express": "^4.17.17",
"@types/node": "^20.0.0",
"@types/bcryptjs": "^2.4.2",
"@types/jsonwebtoken": "^9.0.2",
"typescript": "^5.0.0",
"nodemon": "^2.0.22",
"ts-node": "^10.9.1",
"eslint": "^8.40.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"jest": "^29.5.0",
"@types/jest": "^29.5.0",
"ts-jest": "^29.1.0"
}
}
23 changes: 23 additions & 0 deletions backend/src/config/database.ts
Loading