Skip to content

ellenmariadev/monitoria-webdev

Repository files navigation

Backend E-commerce

Technical test respository for web developer in Resilia Educação. The project is a product management system for an e-commerce site where the administrator can register products and categories.

○ Made With


 Node.js 
Backend Runtime Enviroment

 PostgreSQL (ElephantSQL) 
⇢ SQL Database_

 ESLint 
Javascript Linting

 Prettier 
Code Formatter

 Swagger & Redocly 
Documentation

🌐 DEPLOY

Deploy to Cyclic

📑 Documentation

Route Description
/api-docs Structured API documentation
/swagger Swagger JSON
/docs Redocly API documentation

○ Environment Variables

  POSTGRES_URL=
  TOKEN_API=

○ SQL Database

imagem-2023-02-07-113756456

  CREATE TABLE category (id serial PRIMARY KEY, name VARCHAR(45) UNIQUE NOT NULL);
  CREATE TABLE product (id SERIAL PRIMARY KEY, description VARCHAR(45) UNIQUE NOT NULL, 
  retail_price DECIMAL(13,2), wholesale_price DECIMAL(13,2), categories json);

⚙️ Running this project locally

Warning Requirements: Git, Node.js, Code Editor.

# Clone repository
$ git clone <https://github.com/ellenmariadev/monitoria-webdev.git>

# Install dependecies
$ npm install

# Run application 
$ npm run dev

# Server running at PORT 5050
$ <http://localhost:5050>