Skip to content

Solution for a technical assessment that requires building a basic blog using React, Python, and Docker.

Notifications You must be signed in to change notification settings

THammami01/basic-blog-technical-assessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Technical Assessment

Installation

Run the client, server and database all at once with Docker Compose:

docker-compose up -d

The front-end should run on port 3000, the back-end on port 8000, and the database on port 27017.
Make sure that these ports aren't reserved on your machine or you will face an error.

Cleanup

Remove all created images and containers:

docker-compose down --rmi all

Back-end Endpoints

GET     /posts/
GET     /posts/{id}
POST    /posts/
PUT     /posts/{id}
PATCH   /posts/{id}/upvote
PATCH   /posts/{id}/downvote
DELETE  /posts/{id}

Front-end Screenshots

01

02

03