MongoDB, Expressjs, React, Nodejs
https://ecom-dha2.onrender.com/
t-shirt
is a fullstack implementation in MongoDB, Expressjs, React/Redux, Nodejs.
$ git clone https://github.com/sudhanshu1309/t-shirt.git
$ npm i
LICENSE
package.json
server/
package.json
.env (to create .env, check [prepare your secret session])
client/
package.json
...
notice, you need client and server runs concurrently in different terminal session, in order to make them talk to each other
$ cd frontend // go to client folder
$ npm i // npm install packages
$ npm start // run it locally
// deployment for client app
$ npm run build // this will compile the react code using webpack and generate a folder called docs in the root level
$ npm run start // this will run the files in docs, this behavior is exactly the same how gh-pages will run your static site
run the script at the first level:
(You need to add a JWT_SECRET in .env to connect to MongoDB)
$ cd backend // go to server folder
$ npm i // npm install packages
$ npm start // run it locally
Client-side | Server-side |
---|---|
lodash: ^3.10.1 | cors: ^2.8.1 |
react: ^16.2.0 | dotenv: ^2.0.0 |
react-dom: ^16.2.0 | express: ^4.14.0 |
react-router-dom: ^4.2.2 | mongoose: ^4.7.4 |
Create new Issues (preferred)
Email Me: sudhanshutripathi008@gmail.com (welcome, say hi)
[Sudhanshu Tripathi]