The mini blog website using credentials to authorize the author.
- Full
/blog
CRUD (get
,post
,put
,delete
) methods - Protected blog actions from unauthorized user
- React.js - Frontend SPA
- styled-components - Styling component in React
- axios - HTTP request
- Express.js - node.js server side calling API from The Guardian
- MongoDB Atlas - Hosting online database
$ git clone https://github.com/joepotibutr/mini-blog.git
$ cd mini-blog
Change your path in docker-compose.yml
file
...
volumes:
- ./api:/{your path here}/api
- /{your path here}/api/node_modules
...
volumes:
- ./client:/{your path here}/client
- /{your path here}/client/node_modules
Change your path in Dockerfile
in current directory as well as both client
and api
folder
/Dockerfile
COPY --from=ui-build /{your path here}/client/build ./client/build
client/Dockerfile
WORKDIR /{your path here}/client
api/Dockerfile
WORKDIR /{your path here}/api
Run this command below to build & compose docker container.
$ docker-compose up