Coder Social home page Coder Social logo

proyecto-u7's Introduction

Playmia unidad 7

Crud, express, prisma, buenas practicas y codigo limpio. Proyecto correspondiente a la unidad 7

Integrantes

Elias Champi

Alvaro Chancafe

Emily Alva

Pasos para actualizar la rama local

git checkout main
git fetch origin main
git merge origin/main
git checkout turama
git merge main

Pasos correr el servidor

Luego de hacer un

git clone [email protected]:eliaschampi/proyecto-u7.git

ejecute los siguientes comandos

npm install
npx prisma migrate dev --name init
touch .env

Copie el contenido de .env-example a .env luego ejecute

npm run dev

Endpoint disponibles

CREACION USER:   (POST)
http://localhost:5000/api/v1/users
No Authorization


CONSEGUIR USUARIOS    (GET)
http://localhost:5000/api/v1/users
No Authorization


LOGIN USER     (POST)
http://localhost:5000/api/v1/users/login
No Authorization


CREAR CANCION PUBLICA   (POST)
http://localhost:5000/api/v1/songs
Con Authorization


CREAR CANCION PRIVADA   (POST)
http://localhost:5000/api/v1/songs
Con Authorization


CONSEGUIR CANCIONES PUBLICAS   (GET)
http://localhost:5000/api/v1/songs
Sin Authorization


CONSEGUIR CANCIONES PRIVADAS   (GET)
http://localhost:5000/api/v1/songs/privates
Con Authorization


CONSEGUIR CANCIONES POR ID  (GET)
http://localhost:5000/api/v1/songs/1
Con Authorization


CREAR PLAYLIST    (POST)
http://localhost:5000/api/v1/playlist
Con Authorization


CONSEGUIR PLAYLIST   (GET)
http://localhost:5000/api/v1/playlist
Sin Authorization


AGREGAR CANCIONES A PLAYLIST   (POST)
http://localhost:5000/api/v1/playlist/add
Con Authorization

dicho token se genera al hacer login y puedes pasar al header

headers: {
    "authorization": "token..."
}

Pasos para subir y hacer pull request

// estando en tus rama
git add .
git commit -m "mensaje"
git push origin turama

Despues debe crear pull request pull request tiene una estructura, verifique pull request anteriores

Nota

Este repositorio y su contenido se proporcionan "tal cual" y sin garantía de ningún tipo, ya sea expresa o implícita. Utilice bajo su propio riesgo.

Contribuciones

Este repositorio está abierto a contribuciones de la comunidad. Si desea contribuir, por favor envíe una solicitud de pull con sus cambios. Asegúrese de seguir nuestras guías de estilo y de documentar adecuadamente sus cambios. Si encuentra algún error o tiene sugerencias para mejorar la función, por favor abra un issue para discutirlo.

proyecto-u7's People

Contributors

eliaschampi avatar alvarochancafe avatar emilyalvae avatar

Watchers

 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.