Skip to content

Revathi23Vijay/my_project_po

Repository files navigation

Set up project

With docker-compose,

docker-compose up -d
docker-compose exec backend bash
composer install

## FOR WSL2 USERS: 
## before running next command
## update DATABASE_URL .env variable host IP with IP of WSL instance (inet from ifconfig output) 

php bin/console doctrine:migrations:migrate
php bin/console cache:clear

review project settings on .env

your application should be running on http://localhost:8080

Without docker-compose:

  • requirements
    • php 8.1
    • postgres 14
    • php composer
    • webserver
  • update postgres connection details on .env

App usage

Creating a Post

curl --location --request POST 'http://localhost:8080/posts' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "My first post",
    "summary": "Nam non est risus. Donec at orci at lectus consequat scelerisque vel ac justo."
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published