Coder Social home page Coder Social logo

commerce-cw's Introduction

Commerce-cw

პროექტის გადმოწერა

git clone https://github.com/ixtk/commerce-cw.git

.env config

პროექტის გაშვებამდე შექმენით .env ფაილები frontend და backend/config ფოლდერებში, შესაბამისი .env.sample-ის მიხედვით. .env.sample-ის შიგთავსს დააკოპირებთ .env ფაილში და თითოეულ გარემოს ცვლადს დაუწერთ სასურველ მნიშვნელობებს

გაითვალისწინეთ

VITE_EXPRESS_URL-ის მნიშვნელობა უნდა ემთხვეოდეს backend-ის მისამართს. Frontend-ში გარემოს ცვლადებს სჭირდებათ პრეფიქსი VITE_. ასევე, backend-ის ALLOWED_ORIGIN-ში უნდა ჩაწეროთ React-ის აპლიკაციის URL. ნაგულისხმევად http://localhost:5173

გაშვება

დარწმუნდით, რომ ტერმინალი პროექტის ფოლდერშია გახსნილი:

PS C:\Users\User\Desktop> git clone https://github.com/ixtk/commerce-cw.git
PS C:\Users\User\Desktop> cd commerce-cw
PS C:\Users\User\Desktop\commerce-cw>

გახსენით ორი ტერმინალის ფანჯარა. ერთში frontend ფოლდერი (cd frontend), მეორეში - backend (cd backend). ამის შემდეგ გაუშვით npm i და ბოლოს npm run dev

Frontend

cd frontend
npm i
npm run dev

Backend

cd backend
npm i
npm run dev

შენიშნვა: თუ MongoDB-სთან კავშირისას CONNECTION REFUSED Error მოხდება, გადმოწერეთ MongoDB community server

Branch-ების ცვლილება

git checkout g2
git branch (სტატუსის შესამოწმებლად)

ცვლილებების გადმოწერა/განახლება

სანამ ცვლილებებს გადმოწერთ, დარწმუნდით, რომ local repository სწორ branch-ზეა დაყენებული. (g2 branch-დან გადმოწერამდე, გაუშვით git checkout g2)

git pull origin g2

commerce-cw's People

Contributors

ixtk 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.