Dev. Store - Backend

A simple project with Node + Express for an e-commerce for developers.
You can check the front-end here: https://github.com/victordurco/dev-store
preview

Deployment 🚀

You can check the application in production here: https://dev-store-rouge.vercel.app/

Tooling:

Prerequisites

Installation

  • Clone the backend repository
git clone https://github.com/glappsmobile/dev-store-back
  • Clone the frontend repository
git clone https://github.com/victordurco/dev-store
  • Install NPM packages in frontend AND backend folders
npm install
  • Create the dev and test database using PostgreSQL
CREATE DATABASE dev_store_test;
CREATE DATABASE dev_store_dev;
  • Import DATABASE.sql to both databases (it's located at the root of the backend repository)
pg_dump dev_store_test < path/to/DATABASE.sql
pg_dump dev_store_dev < path/to/DATABASE.sql
  • Put the database information in the .env.dev and .env.test files in the backend repository.
  • If you use a port that is not 4000 in the PORT var in the .env.dev file, then replace the port in REACT_APP_URL_API located at .env.development in the frontend repository with the same one used on the backend.

How to run:

To start the development server, run:

npm run start:dev

To start the frontend, run:

npm start