I've crafted a cutting-edge eCommerce site leveraging Vue.js for a responsive interface, MongoDB for robust data storage, and Express.js on Node.js for a scalable backend. Harnessing the power of Vuex, our application boasts seamless state management for an unparalleled user experience. The UI is not just functional but visually striking, featuring captivating animations that elevate the overall shopping experience. With a strong emphasis on security and personalized interactions, this project showcases my expertise in delivering top-notch web solutions. Ready to contribute innovation and technical excellence to your team.
https://cloths-ecommerces.netlify.app/
First, to setup all the directories run the following in the main directory:
npm install
npm run setup
The first command will install cypress
and some small libraries needed for running the rest of the commands. The second will go into the client
and server
directories and set those up to be ran.
In the client
and server
directory there are two .env.example
files. Create a copy and rename that to .env
. Then follow the instructions in those files to fill in the right values.
To run the app in dev mode you can run the following command in the main directory:
npm run dev
frontend
├── public
└── src
| └── assets
| └── components
| └── router
| └── store
| └── view
| app.vue
| main.js
server
└── src
└── controllers
└── models
└── routes
index.js
public
|| public facing client codecomponents
|| all of our shared components that are used over multiple pagesview
|| the view components of our app, any routing will go between these componentsview/components
|| components used specifically on those pagesindex.jsx
|| the start point of the client
controllers
|| all of our controller functions that interact with the databasemodels
|| all of ourmongoose
models will be placed hereroutes
|| code to match up the API with our controllersindex.js
|| the start point of the server
The base stack of the app is a MERN stack (Mongoose, Express, Vuejs, Node). Next to that we make use of the following extras:
dotenv
|| To load the .env variables into the process environment. See docseslint
|| To check our code. We have different configurations for frontend and backend. You can check out the configuration in the.eslintrc.(c)js
files in the respectiveclient
andserver
folders. See docsprettier
|| To automatically format our code. See docs
For more information on how these work together including the automatic deployment to heroku, have a look at our detailed DEV file.