/Coding-challenge-backend

Rest API using nextjs and prisma

Primary LanguageVue

Getting Started

if you would like to just test the backend run the up command, and that should be all you need to do

Clone this repo and run

docker compose up

Open http://localhost:3000/api/posts with your browser to see the result.

Routes list

/api/posts - Get all posts - GET

/api/postId/edit - edit post - POST

/api/postId - get info on single post -GET

Expected body for update post

{
            Title,
            Body, 
            user_uuid,
            created_at,
            updated_at
}

Run the front end,

cd into frontend

npm i or npm install

npm run serve

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!