This is a queuing app for 3D printing. It includes a user facing form that allows someone to request a print job. It also includes a employee facing app that allows them to change statuses of print jobs, view print jobs, and modify print jobs.
The web app is frontend React and backend Java Spring.
To get started, clone our repo. Using cd and dir (or ls if not on Windows) in you command line, got to the folder you want to clone the repo into and start by typing:
git clone http://github.com/codefordenver/ideaLab
.
To understand more about this project & how you can join, read this PowerPoint: https://docs.google.com/presentation/d/13J6mfre2-HwBbnY5ozxYmMI5CZcK1R_OdZiDlbpZNEA/edit#slide=id.g5e3ebcd7e4_0_111.
Our project is split into 2 sections: frontend & backend.
Our backend is split into 2 sections: our API app & our database. Our API is written in Java Spring & Gradle. Our database uses open source POSTGRES and we have containerized it in Docker.
- Request the latest dev resource file (if starting a new project see Backend/src/main/resources/sample_dropbox.properties)
- Place the resource file and values in /Backend/src/main/resources/dropbox.properties (delete "sample_" if starting a new project)
- Values can be accessed using the @Value annotation. i.e.
@Value("${dropbox.ACCESS_TOKEN}")
private String ACCESS_TOKEN;
- Make sure you have everything downloaded appropriately the first time. Go to our Google docs presentation if you still need to do that.
- Using CD and DIR (or LS) in your command line, navigate to your local repo of ideaLab/Backend.
- Once you are in the appropriate folder, type gradlew bootRun in your command line. (You do not need to start up our Docker container with the database because Gradle is automatically doing that for us.)
- In your browser, type localhost:8080/greeting. You have arrived at our Hello World page.
In general, you should not have to go into this section. If for some reason you do, here are the instructions.
- Make sure you have everything downloaded appropriately the first time. Go to our Google docs presentation if you still need to do that.
- Run
docker create -v /var/lib/postgresql/data --name PostgresData alpine
- And then run
docker run --rm --name postgres -e POSTGRES_PASSWORD=docker -d -p 5432:5432 --volumes-from PostgresData postgres:12
- In your IDE of choice run the app.