Coder Social home page Coder Social logo

clothing_store's Introduction

CLOTHING STORE

author: EMCodev

CREATING AND SETTING FILES

VERIFY VERSIONS

  • npm -v: 10.2.1
  • node -v: v20.19.0
  • nvm -v: v1.1.11

Creating Server Project (Server)

  • cd Apps
  • cd Server
  • npm init -y
  • Edit Package (Server)
  • "main": "index.js",
  • "type": "module",
  • "scripts": { "test": "echo "Error: no test specified" && exit 1", "dev": "nodemon src/index.js", "start": "node src/index.js" },

Creating Client Project

  • cd Apps
  • npx create-vite
  • cd Client

SETTING WORKSPACE AND TURBOREPO

Install Package (root)

  • npm init -y

  • "scripts": { "test": "echo "Error: no test specified" && exit 1", "dev": "turbo dev", "build": "turbo build", "start": "node Apps/Server/src/index.js" },

  • "workspaces" : ["Apps/*"]

Install Node Modules and Turborepo (root)

  • npm i turbo -D

  • create file:

  • turbo.json:

  • { "$schema": "https://turbo.build/schema.json", "pipeline": { "dev": { "cache": false }, "build": { "dependsOn": [ "^build" ], "outputs": [ "dist/**" ] }, "lint": {} } }

  • Adding Proxy to Client (Apps/Client)

vite.config.ts

  • export default defineConfig({ plugins: [react()],
  server: {
    proxy: { 
     '/client-api': { target: "<http://localhost:3000>", changeOrigin: true, secure: false, }
    }  
  }

})

Installing Dependencies to Server (Apps/Server)

  • npm i express --workspace server

  • npm i serve-static --workspace server

  • npm i morgan -D --workspace server

  • npm i mongoose --workspace server

  • npm i drizzle --workspace server

  • npm i bcryptjs --workspace server

  • npm i jsonwebtoken --workspace server

  • npm i zod --workspace server

  • npm i cookie-parser @latest --workspace server

  • npm i --save-dev @types/cookie-parser --workspace server

  • npm i cors --workspace server

  • npm i serve-favicon --workspace server

  • npm i http -D --workspace server

  • npm i nodemon -D --workspace server

  • mongodb://localhost/authdb -> db.js IPV6

  • mongodb://127.0.0.1/authdb -> db.js IPV4

Installing Client Libs

  • npm i [email protected] --workspace client
  • npm i axios --workspace client
  • npm i zustand --workspace client
  • npm i react-query --workspace client
  • npm i react-hook-form --workspace client
  • npm i js-cookie --workspace client
  • npm i dayjs --workspace client

CLIENT DEVELOTMENT

LIBS

  • npm i sass@latest --workspace client
  • npm i styled-components@latest --workspace client
  • npm i @mantine/core @mantine/hooks --workspace client
  • npm i @tabler/icons-react --workspace client
  • npm i --save-dev postcss postcss-preset-mantine postcss-simple-vars --workspace client
  • npm i @mantinex/mantine-logo --workspace client
  • npm i swiper --workspace client
  • npm i @shoelace-style/shoelace --workspace client

STEPS

  1. Global Header Menu
  • Logo *
  • Menu Options *
  • Double Category Hover Icon *
  • Search Field *
  • Profile Options + Favorite *
  • Social Icons Links *
  • Notifications and Cart, Shipping Icons Options *
  • Login Buttons Options *
  • Menu fixed position
  1. Home Images Carousel
  • Add Images *
  • Next & Preview options *
  • Autoplay *
  • Dragging Images *
  • Slide position state animation *
  • Scroll down animation *
  • Shadow image *
  • Title + Subtitle + Button Link

FEATURES HOME

  • Services

Commands

  • npm run dev
  • npm run dev --workspace client
  • npm run dev --workspace server
  • npm run build
  • npm start

clothing_store's People

Contributors

emcodestudio avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.