Coder Social home page Coder Social logo

blog-api's Introduction

TecNM Blog API

Project Initialization

  1. Run the command npm init
  2. Create .env file with the variables of the DB you would create oin the container.
    • SRV is abreviation for service (the postgresql/index.js server)
  3. Run docker-compose up -d to pull the initialize the container
  4. Run this command on the docker bash to create the DB 'psql -U your_env_user -d your_db_env -f 2023-12-27_blogs'
  5. Start the API by running node api/index.js
  6. Start the PostgreSQL API by running node postgresql/index.js

Know you must be able to use the API endpoints.

You can see the endpoints documentation by accesing to the [http:your_api_project_host:3000/api-docs]

Dependencies installed

  • npm i joi
  • npm i express
  • npm i hapi/boom
  • npm i dotenv
  • npm i swaugger-ui-express
  • npm i axios
  • npm i pg

blog-api's People

Contributors

alfred024 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.