Skip to content

rahulbaliyan/UserService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jul 21, 2019
90963a7 · Jul 21, 2019

History

16 Commits
May 7, 2019
Jul 21, 2019

Repository files navigation

UserDetails Django Application, This Application uses mongodb for database

Building

Requirements:

python 3.6, mongodb

1.Install requirements.txt

$ pip install -r requirements.txt

2.see the .env file and set the logpath, logpath is required for this application to maintain errors and information.

#make sure you have mongodb and mongodb should be start on your localhost

#We can change database credentials(username, password, database name, host, port).

According database credentials we can set db parameter in settings.py file. This application uses only local host and mongodb default port 27017.

4.Run migrate command to interection with database

$ python manage.py migrate UserDetailsApp

5.Run Application

$ python manage.py runserver

6.Hit url from any rest client(Postman, Restlet Client , etc)

Django TestCase:

Django uses Unittest cases of python

Run TestCase:

$./manage.py test (run that command current working dir)

#I wrote three test cases like wise we can write more such cases of an dajngo application

Master git repository:

https://github.com/rahulbaliyan/UserService

Licensing


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages