Skip to content

mbslet/translate-me

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

authentication

Run project

  1. To run authenticantion at first you need verrify if you have docker and docker-compose in your machine.
  2. Use command:

docker-compose up --build

Obs: Is important verify if your docker have sudo permission to execute commands

Development tips

  1. Watchout about docker's container, because if containers don't setup at begin of development time the application doesn't work.
  2. Watchout about structure of django framework and rest framework.
  3. If you create or modify a model remember of createi and execute migrations. To make that you need:

docker-compose exec authentication_django ash python3 manage.py makemigrations python3 manage.py migrate

  1. If you need new requirement add the package and the package's version at api/requirement.txt and execute build of container again.
  2. To start new app on application you need.

docker-compose exec authentication_django ash python3 manage.py startapp <"name of app">

  1. Watchout, when you execute some command inside docker you are executing sudo commands, because of that you need execute:

sudo chmod -R 777 <"project folder">

After that you can commit your work. 7. Remember of don't commit migrations and caches. 8. The volume of docker are build inside docker's container that mean you don't have code inside container. You can code in your local machine and the changes will be inside docker.

About

Desenho2019.1 webapp de tradução de texto

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.8%
  • Other 1.2%