GithubHelp home page GithubHelp logo

alkemy-warmup-blog's Introduction

Alkemy Warm Up Challenge: Blog API

Installation

Instalar mediante NPM:

npm install

Para ejecutar una versión local, se requiere disponer en funcionamiento una base de datos mysql, ya sea de forma local o remota.

Además se deberá crear un archivo .env, el cual contenrá las siguientes variables de entorno:

# CUSTOM PORT
CUSTOM_PORT=****

# DATABASE PARAMS
DB_USERNAME=****
DB_PASSWORD=****
DB_DATABASE=****
DB_HOST=****
DB_PORT=3306
DB_DIALECT=mysql 

La librería dotenv configura automáticamente dichas variables a partir de este archivo.

Iniciar el servidor con el comando:

npm start

De manera opcional, se puede iniciar el servidor con nodemon con el siguiente comando:

npm run dev

Endpoints

Posts

  • getAll GET: /posts params (optional): order = ASC || DESC
  • getOne GET: /posts/:id
  • create POST: /posts
  • update PATCH: /posts/:id
  • deleteOne DELETE: /posts/:id

Categories

  • getAll GET: /categories
  • getOne GET: /categories/:id
  • create POST: /categories
  • update PATCH: /categories/:id
  • deleteOne DELETE: /categories/:id

alkemy-warmup-blog's People

Contributors

aa-avila 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.