GithubHelp home page GithubHelp logo

facundopalombo / pern-todo Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 678 KB

App de todos fullstack de node.js react postgresql, dockerizada.

License: Other

Dockerfile 1.80% HTML 6.80% CSS 26.23% JavaScript 65.17%

pern-todo's Introduction

Dockerized fullstack app | Classic TODOS

Initialization

Startup

Clone this repo and run

docker-compose build && docker-compose up

Database initialization

Run the following commands:

$ docker exec -it ${your_docker_postgres_instance_hash} bash

# -$ psql -U $POSTGRES_USER -w $POSTGRES_PASSWORD -d $POSTGRES_DB

db-todo=# CREATE TABLE todo (id SERIAL PRIMARY KEY, description VARCHAR(255));

PGAdmin initialization

For pgadmin initialization follow the next steps:

  1. Open localhost:54105
  2. Login with the default credentials setted in docker-compose.yml file as PGADMIN_DEFAULT_EMAIL and PGADMIN_DEFAULT_PASSWORD respectively on pgadmin service
  3. Create new server with the following data (if no data provided, left that space as default)
  • General:
  1. Name = "db-todo"
  2. Connect now = true
  • Connection:
  1. Host / Name address = "db-todo"
  2. Port: 5432
  3. Maintenance database = "db-todo"
  4. Username: $POSTGRES_USER into docker-compose.yml db-todo service.
  5. Password: $POSTGRES_PASSWORD into docker-compose.yml db-todo service.
  6. Save password: true

Quick start

API Reference

TODO's CRUD:
  • root /todos

  • GET: /todos - Get all todos

  • GET: /todos/:id - Get one todo by id

  • POST: /todos - Create new todo

"body": {
  "description": "your description"
}
  • PUT: /todos/:id - Update todo
"body": {
  "description": "your description"
}
  • DELETE: /todos/:id - Delete todo
  • GET: /actuator - Healthcheck endpoint

pern-todo's People

Contributors

facundopalombo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.