Skip to content

Commit 7b1d4a3

Browse files
committed
initial project on git
0 parents  commit 7b1d4a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+50729
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
client/node_modules
2+
server/node_modules
3+
client/.DS_Store
4+
server/.DS_Store

README.md

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# WebShop
2+
3+
<table>
4+
<tr>
5+
<td>
6+
7+
My first full stack project i made from scratch. It is simple web shop. It's been created to learn Javascript and data flow between back end and front.
8+
</td>
9+
</tr>
10+
</table>
11+
12+
## Technologies
13+
14+
Project is created with:
15+
16+
- node version: v16.13.0
17+
- react version: ^17.0.2
18+
- redux version: ^4.1.2
19+
- react-router-dom version: ^5.2.0
20+
- styled-components version: 5.3.0
21+
- express version: ^4.17.1
22+
- mysql2 version: ^2.3.0
23+
- nodemon version: ^2.0.12"
24+
- passport version ^0.5.0
25+
26+
## How To Use
27+
28+
To clone and run this application, you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:
29+
30+
```bash
31+
32+
###notice my default branch is main ###
33+
# Clone this repository
34+
$ git clone https://github.com/SqCodeJs/shop
35+
36+
# Go into the repository
37+
## 1. Frontend
38+
$ cd shop/client
39+
40+
# Install dependencies
41+
$ npm install
42+
43+
# Run the app
44+
$ npm start
45+
### You can use just frontend, becouse i set up temperary database for products.
46+
47+
## 2. Backend
48+
### Go back
49+
$ cd ..
50+
$ cd client
51+
# Install dependencies
52+
$ npm install
53+
# Run the app
54+
$ npm run shop
55+
### You can check package.json and find out how to run app if you've got any issue.
56+
57+
#Next step is setting up your Database.
58+
###Check out db.js file in shop/server/config . You gonna find out how i called my datebase and what password i used.You can fallow my way or configure on your own. I use MySql Workbench for create my table. Create table and call it "ShopUsers" .
59+
60+
Table schemate:
61+
62+
| Columns | Dataype |
63+
| ------------- |:-------------:|
64+
| id | int AI PK |
65+
| name | varchar(45) |
66+
| lastName | varchar(45) |
67+
| mail | varchar(45) |
68+
| password | varchar(255) |
69+
70+
71+
```
72+
73+
1. Features
74+
⋅⋅* shopping
75+
⋅⋅* create account
76+
⋅⋅\* searching products
77+
2. To Do
78+
⋅⋅* create all routes
79+
⋅⋅* finish mediaQueries
80+
⋅⋅* add payment sort products
81+
⋅⋅* customers web chat
82+
⋅⋅\* users panel

client/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

client/README

Whitespace-only changes.

client/README.md

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Getting Started with Create React App
2+
3+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4+
5+
## Available Scripts
6+
7+
In the project directory, you can run:
8+
9+
### `npm start`
10+
11+
Runs the app in the development mode.\
12+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13+
14+
The page will reload if you make edits.\
15+
You will also see any lint errors in the console.
16+
17+
### `npm test`
18+
19+
Launches the test runner in the interactive watch mode.\
20+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21+
22+
### `npm run build`
23+
24+
Builds the app for production to the `build` folder.\
25+
It correctly bundles React in production mode and optimizes the build for the best performance.
26+
27+
The build is minified and the filenames include the hashes.\
28+
Your app is ready to be deployed!
29+
30+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31+
32+
### `npm run eject`
33+
34+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35+
36+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37+
38+
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39+
40+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41+
42+
## Learn More
43+
44+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45+
46+
To learn React, check out the [React documentation](https://reactjs.org/).
47+
48+
### Code Splitting
49+
50+
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51+
52+
### Analyzing the Bundle Size
53+
54+
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55+
56+
### Making a Progressive Web App
57+
58+
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59+
60+
### Advanced Configuration
61+
62+
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63+
64+
### Deployment
65+
66+
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67+
68+
### `npm run build` fails to minify
69+
70+
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

0 commit comments

Comments
 (0)