Giter Club home page Giter Club logo

webapp's Introduction

Dalgo frontend

License: AGPL v3 Code coverage badge

Installation instructions

yarn install

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 Dcoker folder

Step 2: Build the Docker image

All the variables with NEXT_PUBLIC prefix need to be added to the build command. This is because we are running the application as standalone mode

docker build -f Docker/Dockerfile --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg NEXT_PUBLIC_BACKEND_URL="<url of django backend>" -t dalgo_frontend:0.1 .

Step 3: Start the application

docker compose -f Docker/docker-compose.yaml --env-file .env up

webapp's People

Contributors

ishankoradia avatar fatchat avatar mdshamoon avatar snyk-bot avatar abhishek-n avatar kurund avatar yvonnegitau avatar akshat-jaiswal-8 avatar snehil-shah avatar huzaifmalik786 avatar kushdapush avatar jayanth-kumar-morem avatar pratik-050 avatar masterismail avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.