Skip to content

DalgoT4D/webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dalgo frontend

License: AGPL v3 Code coverage badge

Installation instructions

yarn install

Formatter

This project uses Prettier for code formatting to maintain consistent style across all JavaScript and TypeScript files. Husky is used as a pre-commit hook. It automatically formats the code and adds the changes to the commit if any formatting inconsistencies are found.

Run the development server

You will need to run the Django backend. Once that is running, specify its URL in the .env under

NEXT_PUBLIC_BACKEND_URL=<url of django backend>

Next, generate a security secret using https://generate-secret.vercel.app/32 and set it in

NEXTAUTH_SECRET=<secret>

Finally, select an available port on your system and define the URL for this frontend

NEXTAUTH_URL=http://localhost:<port>

Now you can start the application

yarn dev

Open http://localhost:<port> with your browser to see the result.

Development convention

Refer to this guide

Using Docker on Dev

Make sure you have docker and docker compose installed.

Step 1: Copy .env file to Docker folder

Step 2: Build the Docker image

The env varibales will be picked up from the .env file during the yarn build stage. This will copy all the env variables starting with NEXT_PUBLIC_ (that get embedd into the javascript code). The env varibales starting without NEXT_PUBLIC_ will be picked up during run time. Run the script:

bash docker-build.sh "image_name:tag"

Once the image is built, add that image_name:tag to the Docker/docker-compose.yaml file

Step 3: Start the application

Run the script:

bash docker-compose.sh

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 20

Languages