Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.13 KB

README.md

File metadata and controls

62 lines (43 loc) · 1.13 KB

Test Project Node with Express

This project is an API server for another frontend project that is built with ReactJS.

Create Database (Postgres)

Clients

Column Type Description
id uuid Not Null. Autoincrement
name varchar Not Null.
email varchar Not Null.
phone integer Not Null.
coord_x float4 Not Null.
coord_y float4 Not Null.

Config var with your database data (server.js):

  db_config = { 
    user: 'user_database',
    host: 'localhost',
    database: 'name_database',
    password: 'password_database',
    port: 5432,
  }

Run Locally

Clone the project

  git clone https://github.com/leoholiveira/Test-Node

Go to the project directory

  cd Test-Node

Install dependencies

  npm install

Start the server

  node server.js

Tech Stack

Client: React

Server: Node, Express

Database: Postgres