Git Product home page Git Product logo

blogify-api's Introduction

Blogify API

Welcome to Blogify API, a TypeScript-powered Node.js and Express backend server for your secure and robust blogging platform.

Table of Contents

Technologies Used

Installation

  1. Clone the repository:

    git clone [email protected]:IkboljonMe/blogify-api.git
    cd blogify-api
  2. Create a .env file based on .env.example:

    cp .env.example .env

    Edit the .env file and provide the necessary configuration values.

  3. Install dependencies and run the development server:

    yarn install
    yarn run dev

    This will start the development server at http://localhost:1337.

    Open http://localhost:1337/docs to access Swagger documentation. For additional details, refer to ROUTES.md.

Swagger Documentation

Explore and interact with the API using Swagger documentation. Visit http://localhost:1337/docs to view detailed information about available routes, request payloads, and responses. For additional details of every API endpoint, go to ROUTES.md file

Postman for Better Testing

For a comprehensive testing experience, import the provided Postman collection (postman_collection.json)(link) into your Postman workspace. The collection includes pre-configured requests for various API endpoints, making testing and development more efficient.

Deployment

The application is configured for deployment using Candy Server and Digital Ocean.

Running with Docker

  1. Ensure Docker are installed.

  2. Build and run the Docker containers:

    docker-compose up

    To run in the background, use:

    docker-compose up -d

    To build and run:

    docker-compose up --build

Deploy with Candy Server and Digital Ocean

  1. Deploy to Candy Server:

    • I have already predefined Candyfile in project. For more, click here
  2. Deploy to Digital Ocean:

    • Create a Digital Ocean Droplet.

    • Connect to your Droplet and clone the repository. For more, read official tutorial. Personally, I did not push project Docker Hub, instead simply I connected repo to Droplet via terminal. Follow attached tutorial for better understanding.

    • Install dependencies and start the server. To deploy a project, simply use my deploy.sh script to pull and push repo to Digital Ocean droplet.

    ./deploy.sh

TODO

  • Implement Google auth
  • Add cookies to save token
  • Connect to client(React/Next)

blogify-api's People

Contributors

ikboljonme avatar

Stargazers

 avatar  avatar  avatar

Watchers

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