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.
Node.js
⇢ Backend Runtime Enviroment
PostgreSQL (ElephantSQL)
⇢ SQL Database_
ESLint
⇢ Javascript Linting
Prettier
⇢ Code Formatter
Swagger & Redocly
⇢ Documentation
Route | Description |
---|---|
/api-docs | Structured API documentation |
/swagger | Swagger JSON |
/docs | Redocly API documentation |
POSTGRES_URL=
TOKEN_API=
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);
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>