This repository contains the code for the web application, meaning, the frontend (user visible) and the backend (database etc interaction). It is written in Next.js.
Before you can develop this repo locally, you follow a few steps:
- Install PostgreSQL.
- Copy the
.env.exampleto.envand fill in the properties. (see Discord for credentials) - Install NodeJS
- Run
npm installto install the dependencies.
- Make sure the PostgreSQL database is running.
- Run
npm run dev, the web application will start. Go to https://localhost:5001 in your browser. If you make a code change, this will immediately be updated in the browser.
When you adjust the database schema (prisma/schema.prisma), you must update the local database using migrations.
Run the following commands to update your local database:
npx prisma migrate devnpx prisma generate
This repo uses the tensorflow/federated repository and its Dockerfile. The build version of this Dockerfile is not officially stored in docker hub. Because of this a custom built version of the Dockerfile is located here.
docker pull codestix/federated
-
Create a new repository or use existing repository on hub.docker.com.
-
Login using the
docker logincommand. -
Clone the tensorflow/federated git repository ...
git clone https://github.com/tensorflow/federated cd federated -
Build the image using ... (make sure to replace versions and tag)
docker build --build-arg VERSION="0.23.0" --network=host --file "tensorflow_federated/tools/runtime/container/release.Dockerfile" -t codestix/federated:0.23.0 . -
Push the built image to Docker Hub ... (make sure to replace tag and version)
docker push codestix/federated:0.23.0