Coder Social home page Coder Social logo

cogitech's Introduction

Cogitech recruitment task

Author

Tomasz Wnuk
[email protected]
https://github.com/tjwnuk

Description

This is recruitment task for Cogitech.
This repo utilises template from
https://github.com/ger86/symfony-docker

Install

clone this repo \

cd cogitech
cd .docker
docker compose up -d
docker exec -it symfony_dockerized-php-1 bash
composer install

#initialize database entity
php bin/console make:migration

Use

App works on port :8080 . Please run browser and open http://localhost:8080. After starting the container refresh the page.

Fetch the data

  1. Run container
cd cogitech/.docker/
docker-compose up -d
  1. List working containers
docker ps
  1. find php container and get into it, for example
docker exec -it symfony_dockerized-php-1 bash
  1. Fetch data from the website
php bin/console fetch

Clear the database

You can simply clear the database, just log into container

docker exec -it symfony_dockerized-php-1 bash

and run the command

php bin/console clear

API

The site exposes api through the API Platform, available at /api.

/api - Swagger UI
/api/posts - List of all posts
/api/posts/{id} - get certain post

cogitech's People

Contributors

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