8000 GitHub - AliNisarAhmed/note-taking-app: MERN Stack note taking app · GitHub
[go: up one dir, main page]

Skip to content

About

MERN Stack note taking app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Note Taking App - Using Docker to developer and deploy

DOCKER Commands used

DOCKER Commands for initally running mongo

docker run --name my-mongo -d -v data:/data/db -p 27017:27017 mongo

IP = 172.17.0.2

RESTART Container

docker restart my-mongo

DOCKER commands for building the node app

docker build --tag=note-taking-app .

DOCKER command for running the above image

docker run -p 3000:3000 note-taking-app

After adding docker-compose.yml file, the following command was executed

sudo docker-compose up

TAGGING a Docker Image before pushing to Docker Hub

docker tag 2e40730bbdae alinisarahmed/note-app:firsttry docker tag (image Id) (docker id / repo : tag name)

Pushing to docker hub

docker push alinisarahmed/note-app

Run a docker container with --rm flag to remove the container on exit

docker run --rm prakhar1989/static-site

Find the exposed port of a running container by

docker port static-site


================= API =========================

Auth

POST: /api/auth/register : User can enter username (unique) and password to signup.

POST: /api/auth 5AC6 /login : User logins using username & password

Notes

GET: /api/notes => get all notes for a user

POST: /api/notes/create => User can create a note, only after logging in

DELETE: /api/notes/:noteId => User can delete a note

PUT: /api/notes/:noteId => Modify a note


Development with auto reloading

Run

About

MERN Stack note taking app

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0