- This is a quiz application with user authentification
- To view all users data from database
/all
HTTP Method: Get - To view a certain user data from database
/all:id
HTTP Method: Get - To sign in
/signin
HTTP Method: Post - To register
/register
HTTP Method: Post - To view an authorized user's (your) data
/profile/:id
HTTP Method: Get/Post - To view and update score
/score
HTTP Method: Put - To view API documentation
/api-docs
HTTP Method: GET
PERN Stack
(Postgeres Express React Node)bcrypt
for hashing passwordknex-js
to connect database with the backendparticles-js
for backgroundtachyons
for stylingREST API
id | name | score | joined | |
---|---|---|---|---|
1 | Syimyk | syimyk@gmail.com | 55 | 2021-05-09 |
id | hash | |
---|---|---|
1 | syimyk@gmail.com | $2a$05$LhayLxezLhK1LhWvKxCyLOj0j1u.Kj0jZ0pEmm134uzrQlFvQJLF6 |
- Clone repo
git clone https://github.com/beknazar001/frontend-awesome-cats.git
cd frontend-awesome-cats
- Build a docker image with the tag name 'frontend'
docker build -t frontend .
- Create a new repo in Docker Hub and Login to docker from CLI
docker login
- Change docker image tag
docker tag frontend <docker-username>/<repo-name>
# If you'd like to add tag you can run
docker tag frontend <docker-username>/<repo-name>:tagname
- Push your image to Docker Hub
docker push <docker-username>/<repo-name>:
After completing all of those steps above you would have a built docker image that you can use further as the usual docker image