Skip to content

sachinchauhan10497/SachinApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SachinApp

My app to learn basics of Docker, MongoDb, Python, Node.js, Testing, code coverage, Linting.

Creating App which

  • User can send usreName and text to save in Db (POST API)
  • User can get his text by UserName (GET API)
  • Can execute python code on jupyter kernelgateway

I save data in MongoDb, Creare APIs in Python and UI in Node.js. Each will run inside docker container.

Mongo Db

Commands For Docker

Python APIs

Node.js Front End APIs

  • npm install express --save (also do for ejs, body-parser, request etc.)
  • docker build nodejs-ui
  • docker run -p 3000:3000 --name nodejs-ui -d b00152f27a96

Linting

  • python - pylint *.py
  • node.js eslint
  • npm install eslint -g
  • eslint --init
  • eslint app.js --fix

Testing and Code coverage

Other imp stuff

  • releasing port if already useed sudo lsof -i:port kill -9 p_id

  • linking the containers - docker run -it --name python_container --link mongodb -d d609a386f707

  • post directly on python - curl -X POST 'http://0.0.0.0:5000/?userName=abc11&data=abcd'

Authentication using JWT Tockenes

About

My small app to learn basics of Docker, MongoDb, Python, Node.js, Testing, code coverage, Linting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published