Giter Site home page Giter Site logo

handwerkersecondary's Introduction

Handwerker

Build Status

This is a RESTful API for job posting application. It includes authentication, authorization, internationalization, and CRUD for Jobs with Categories.

The purpose of the application was to practice Hexagonal Architecture, Chicago Style Test-driven development, and CQRS.

It is based on Symfony 4, PHP 7.4. The response format of the API is based on JSend specification.

Prerequisites

  • PHP 7.4+
  • MySQL

How to deploy

  • Clone the repository.
git clone https://github.com/EresDev/Handwerker
  • Install it.
composer install
  • Create MySQL database if you have not already created.
php bin/console doctrine:database:create  --if-not-exists

It will give you errors if there is a problem in connecting to MySQL. Fix them accordingly. You can update the database details in .env file.

  • Create database schema
php bin/console doctrine:schema:create 
  • Generate SSH keys
mkdir -p config/jwt
openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096 -pass pass:879329hr8uhgf7834rhgiuw834hr
openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -passin pass:879329hr8uhgf7834rhgiuw834hr -pubout 

Here 879329hr8uhgf7834rhgiuw834hr is the passphrase that you have to replace with one of your choice. If you are just performing a quick test, keep the value, it will help you get it working quickly but it must be taken care of before going to production.

  • Update the JWT_PASSPHRASE in .env or .env.local

  • Run the tests

composer test

Happy coding!

handwerkersecondary's People

Watchers

James Cloos avatar EresDev 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.