Skip to content

fsek/WWW-Web

Repository files navigation

Web3

This repo uses VSCode's Dev Containers extension to standardize the development environment and avoid headache-inducing installation. All development will happen inside a Docker container which installs the same dependencies and versions on every developer's machine.

Installation

  1. Using Windows? First set up WSL 2.

    • Press Windows -> "Turn Windows features on or off". Enable "Windows Subsystem for Linux".
    • Open Powershell as admin.
    • wsl --install
    • wsl --set-default-version 2
    • wsl --install -d Ubuntu-22.04
    • wsl --set-default Ubuntu-22.04
    • For more info: Microsoft documentation
  2. Install Docker Desktop and run it.

    • Windows users: Make sure you select Use WSL 2 instead of Hyper-V if the option is presented.
  3. Open a new VSCode window and install Dev Containers extension from the Extensions menu.

  4. Open the Command Palette (Ctrl + Shift + P / Cmd + Shift + P) and select Dev Containers: Clone Repository in Container Volume.... Select GitHub, then enter fsek/WWW-Web.git.

  5. After configuration has finished in the open terminal, it should say Done. Press any key to close the terminal.

  6. Open a new Bash terminal (Ctrl + Shift + Ö) and run: bun install, bun run generate-api and then bun run dev. If you are developing the backend application and want to test the frontend against it, make sure to specify the backend URL in the .env file with NEXT_PUBLIC_API_BASE_URL="http://localhost:8000". Otherwise https://stage.backend.fsektionen.se will be used.

    • If you start WebWebWeb in a VSCode window, closing the window or switching to WWW-Web in the same VSCode window will terminate the backend. Open another window instead.
  7. Go to http://127.0.0.1:3000/ (or http://localhost:3000/admin) for the website where you can see the project🎉🥳🇱 🇬 🇹 🇲

  8. From now on, whenever you want to open this project: Open a new VSCode window and in Recent, find WWW-Web in a unique volume [Dev Container]. Don't re-run Clone Repository... from step 3.

Troubleshooting

  • Ctrl + Shift + P and type Rebuild Container.
  • Check if you alredy have an open port in the port window in VSCode. Delete it, press Ctrl + Shift + P and type Rebuild Container.

Working on WWW-Web

Tips and tricks

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 12

Languages