React web app built using the PERN stack (PostgreSQL, Express.js, React, Node.js).
git clone https://github.com/Devf1s/react-online-store.git
cd react-online-store
2. Install dependencies (Node.js is required: https://nodejs.org/en/):
- Client
cd client
npm i
- Server
cd server
npm i
- Create
.env
file based on.env.example
on the server side
DB_NAME=your_database
DB_USER=your_username
DB_PASSWORD=your_password
DB_HOST=localhost
DB_PORT=5432
SECRET_KEY=secret_key
npm start
- runs the app in the development modenpm run build
- building production version (minimized and optimized) to the build foldernpm test
- launches the test runner in the interactive watch modenpm run eject
- exposes the build configuration files
npm run start
- starts the server with nodemon for development (with hot-reloading enabled)npm run launch
- starts the server in production mode