Giter Site home page Giter Site logo

crud-exercise's Introduction

CRUD-exercise

This is a project to exercise serving a full CRUD service.

Requirements

You will need docker and docker-compose to run this application.

It was developed under Docker version 18.09.3 and docker-compose version 1.23.2

Getting up and running

To run this server just type

./serve_environment.sh

at the root of the project. This will start the project and initialize the DB with the necessary data.

Getting the server down

To stop the containers just run the following command at the root of the project

./shutdown_environment.sh

it will kill all containers.

Code Structure (under development)

This section is under development and will grow/get better.

The server code are located under ./service folder.
The ./scripts folder contains the necessary script to run inside the mongo docker container.

API

Today we only have one API running, to insert a card.
If you want to insert a card you just need to send a POST request to

localhost:8081/cards

with a body that are similar to the following

{
  name: 'TRUCO LADRÂO',
  imageUrl: 'imagem.de.teste.com',
  cardType: 'Monster',
  type: 'Neutral',
  lore: 'Monstro criado a partir de uma partida de truco muito louca entre uma galera no bar',
  properties: ['Rare', 'Special'],
}

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.