Skip to content

Commit

Permalink
refactor: remove server & move client codes to root
Browse files Browse the repository at this point in the history
  • Loading branch information
saifulshihab committed Jan 28, 2024
1 parent 514c2c4 commit a8cd488
Show file tree
Hide file tree
Showing 64 changed files with 3,273 additions and 677 deletions.
File renamed without changes.
File renamed without changes.
27 changes: 25 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
node_modules
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

.env
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build
.env

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

/dist
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ Building Facebook UI Clone using React, Tailwind CSS🔥
```javascript
cd YOUR-PROJECT-FOLDER
yarn // install all packages dependencies
yarn start:web // run client side
yarn start:server // run server
yarn dev // run app
```

# Contribution
Expand Down
File renamed without changes.
72 changes: 41 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,49 @@
{
"private": "true",
"name": "facebook-clone",
"version": "1.0.0",
"description": "Facebook clone using React.js, Node.js, GraphQL & TypeScript",
"main": "index.js",
"scripts": {
"postinstall": "husky install",
"start:web": "yarn workspace facebook-clone-client dev",
"start:server": "yarn workspace facebook-clone-server dev",
"build:web": "yarn workspace facebook-clone-client build",
"build:server": "yarn workspace facebook-clone-server build",
"build:all": "yarn workspace facebook-clone-client build && yarn workspace facebook-clone-server build"
"name": "facebook-ui-clone",
"version": "0.1.0",
"private": true,
"type": "module",
"dependencies": {
"formik": "^2.2.9",
"moment": "^2.29.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^3.11.0",
"react-router-dom": "^6.4.3",
"yup": "^0.32.11"
},
"repository": {
"type": "git",
"url": "git+https://github.com/saifulshihab/facebook-clone.git"
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|jsx|tsx|json)\""
},
"keywords": [
"react",
"facebook-clone",
"react-facebook-clone",
"full-stack-facebook",
"react-graphql-facebook-clone"
"facebook",
"tailwindcss",
"react-facebook-clone"
],
"author": "Saiful Islam",
"license": "ISC",
"bugs": {
"url": "https://github.com/saifulshihab/facebook-clone/issues"
},
"homepage": "https://github.com/saifulshihab/facebook-clone#readme",
"devDependencies": {
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"husky": "^7.0.4"
},
"workspaces": [
"packages/**"
]
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@types/react-router-dom": "^5.3.2",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"@vitejs/plugin-react": "^4.0.0",
"autoprefixer": "^10.4.16",
"eslint": "^8.38.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.3",
"typescript": "^5.0.2",
"vite": "^4.3.2"
}
}
26 changes: 0 additions & 26 deletions packages/client/.gitignore

This file was deleted.

49 changes: 0 additions & 49 deletions packages/client/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/server/.eslintignore

This file was deleted.

38 changes: 0 additions & 38 deletions packages/server/.eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/server/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions packages/server/nodemon.json

This file was deleted.

Empty file removed packages/server/ormconfig.json
Empty file.
38 changes: 0 additions & 38 deletions packages/server/package.json

This file was deleted.

15 changes: 0 additions & 15 deletions packages/server/src/config/mongodbConnection.ts

This file was deleted.

Loading

0 comments on commit a8cd488

Please sign in to comment.