Skip to content

shandao256/Activity_Tracker

Repository files navigation

Review Assignment Due Date

Setting up postgresql with docker:

  1. Install docker and log in
  2. Copy .env.example file and name it .env
  3. Go to .env and insert our data in the empty space
  4. Install EnvFile PlugIn (Power supply Icon)
  5. Edit your Build configurations (3 dots on the upper right)
  6. Enable EnvFile and Substitute Environment Variables
  7. Click + and add our .env file which is in our backend directory
  8. open docker-compose.yml and run it (first line on the left of services)
  9. Insert into your terminal: "docker-compose up -d"
  10. Run BackendApplication.java
  11. Press Database button on the right edge of IntelliJ
  12. Add new Database:
    • Type in name in front of @localhost our database name
    • Type in the Database field our database name
    • Type in username and password and press apply

Now you should see our two tables if you open up the public folder.

If so everything worked properly!

Choosing local or server

  1. In Android Studio, click the three dots on the left sidebar
  2. You should find "Build Variants" with a hammer icon
  3. Under "Active Build Variant" switch between localDebug and serverDebug
  4. For local testing, make sure the backend is running locally

About

An andoid application done as a rated college project in the 4th semester.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors