Coder Social home page Coder Social logo

albugowy15 / api-double-track Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 224 KB

Go-based REST API that offers a variety of endpoints designed to supply data for integration with the Double Track Recommendation Web.

License: MIT License

Makefile 0.27% Go 99.42% Dockerfile 0.31%
go rest-api

api-double-track's Introduction

Double Track Recommendation REST API

This project is a Go-based REST API that offers a variety of endpoints designed to supply data for integration with the Double Track Recommendation Web.

Tech Stack

  • Go 1.22
  • Chi (HTTP Router)
  • SQLx (database library)
  • Viper (configuration management)
  • Air (hot reload for development)
  • PostgreSQL (database)

Docker Compose

To run the project with Docker Compose, follow these steps:

  1. Start the PostgreSQL Docker container by running:
docker-compose up -d db
  1. Run database migrations and seed data by executing:
go run cmd/database/migrations/up/main.go && go run cmd/database/seeder/main.go
  1. Finally, launch the application using Docker Compose:
docker-compose up api

This will start the application in a Docker container, allowing you to interact with the REST API. You can interact with the API by navigating to http://localhost:8080.

Development Mode

To run the project in development mode, follow these steps:

  1. Make sure you have installed air for hot reload. Refer to air docs for installation instructions.
  2. Run the following command to start the application with air:
air

This will launch the application with hot reload enabled, allowing you to make changes to the code and see them reflected in real-time without restarting the server.

api-double-track's People

Contributors

albugowy15 avatar storyofhis avatar github-actions[bot] avatar

Watchers

 avatar  avatar

api-double-track's Issues

Update auth session data

Provide a route for updating session data (inside JWT token) whenever one of these data change

  • Username
  • Email

The web client must send a POST request to this request and update its session state after performing some mutations that update user username and email.

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.