Giter Site home page Giter Site logo

sisouza / apijs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 41 KB

final challenge of the training project offered by Eldorado Institute. Repository containing the project backend which consists of a rest api for a movie application.Feito para o desafio final do treinamento oferecido pelo Instituto Eldorado. Repositório contendo o backend do projeto que consiste em uma rest api para uma aplicação de filmes.

Shell 0.59% Dockerfile 1.41% JavaScript 98.00%
nodejs express rest-api api docker docker-compose javascript sequelize postgresql

apijs's Introduction

Um sistema de cadastro de filmes e usuários utilizando uma API Nodejs, Express, banco de dados Postgres e a ORM Sequelize. Feito para o desafio final do treinamento oferecido pelo Instituto Eldorado. Repositório contendo o backend do projeto que consiste em uma rest api para uma aplicação de filmes.

Setup

npm install

Altere as suas credenciais em .env para o acesso ao banco de dados

Executando o Projeto

docker-compose up

E o servidor web será iniciado

Para acesso as rotas basta utilizar um API CLIENT como postman ou insomnia.

Directory Structure

  • apijs /
    • src/
      • config
      • controllers
      • database
      • models
      • routes
    • server.js

EndPoints

User:

- create: post '/user'
- listAll: get '/user'
- list a single user: get '/user/:id'
- update: post '/user/edit/:id'
- delete: delete '/user/:id'

Movies:

- create: post '/movie/'
- list all: get '/movie'
- list by genre: get '/movie/:genre'
- lis by name: get '/movie/:name'
- update: post '/movie/edit:id'
- delete: delete '/movie:id',

Genre:

- create: post '/genre/'
- list all: get '/genre'
- update: post '/genre/edit:id'
- delete: delete '/genre/:id',

apijs's People

Contributors

sisouza avatar

Watchers

 avatar

apijs's Issues

Generic

Hey ! I had a look at your code. Why don't to make it generic and reduce efforts. I have made one if you can collaborate and what to see my code. You can contact me at [email protected].

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.