Code Monkey home page Code Monkey logo

f1monkey

F1monkey backend monorepo

Services

auth - Auth microservice

Local deployment

  • Copy docker-compose.override.yml.dist to docker-compose.override.yml
cp docker-compose.override.yml.dist docker-compose.override.yml
  • Run docker containers
$ ./scripts/docker-start.sh
  • Connect to the go container
$ docker-compose exec go bash
  • Generate RSA key pair to sign JWT tokens
$ openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
$ openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout
  • Add private key passphrase to .env.local
$ printf "\nJWT_PASSPHRASE=passphrase" >> .env.local

Development

  • Attach VS Code to the container using Remote Containers
    • Ctrl+Shift+P
    • Select Remote-Containers: Attach to Running Container comand
    • Choose the container from the list

Makefile

%app%- one of the following services:

Building

Run the following command to build the application

$ make build %app%

Run the following command to build an run the application

$ make run %app%

Testing

Run tests:

$ make test

Docs

Regenerate API documentation

Run command to regenerate API documentation:

$ make docs

F1monkey Labs's Projects

bitmap icon bitmap

Simple and stupid dense bitmap index implementation

errs icon errs

A simple wrapper over the standard errors package to get error stack traces.

phonetic icon phonetic

Phonetic encoders - bmpm, caverphone, soundex, metaphone

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.