Skip to content

esterandr02/Denouncing-api

Repository files navigation

logo

Denouncing API

A simple denouncing api with a location system.

github-top-language github-repo-size github-last-commit github-repo-license

Technologies   |    Prerequisites   |    Getting Started   

How works

  • Giving complaints coordinates that will find some address where you want to complain
  • Register complaints whistleblower on database

🚀 Technologies

⚠️ Prerequisites

ℹ️ Getting Started

  • Install some http client to access routes or view on browser
  • Suggestion: Insomnia
# Clone this repository
$ git clone https://github.com/esterandr02/Denouncing-api.git

# Go into the repository
$ cd Denouncing-api

# Install dependences
$ yarn

# Create a Docker container
$ sudo docker run --name postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres

# Start container - (if your machine has been powered off)
$ docker start (container name/id)

# Ckeck port - (if port 5432 has being used)
$ lsof -i :5432
$ sudo kill -9 (process that is using the port)

# Construct database tables
$ yarn typeorm migration:run

# Start the Server
$ yarn dev

# route: includes post and get methods
http://localhost:3000/v1/denuncias

Now you can use the app :D

obs: Ctrl + C to stop the server.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages