Skip to content

Application to manage raffles interact’s administration

Notifications You must be signed in to change notification settings

raffles-interact/interapp

Repository files navigation

interapp

Quality Gate Status Code Smells Bugs Lines of Code

A monorepo for Raffles Interact's administrative application. Built with Next.js and Express along with the Bun runtime.

Setting up (development)

Prerequisites

Ensure that you have the docker daemon running, along with bun, make and docker installed in the CLI.

Clone with git clone https://github.com/raffles-interact/interapp.git

Running

Ensure you are in the root of the project, and that .env.local exists. Run make build and make watch (for HMR).

If your IDE is giving you import errors, run bun i in the terminal.

Go to localhost:3000 for frontend and localhost:3000/api for api routes

Setting up (testing/non-technical)

Please get .env.local from the current maintainers of the project, which is sensitive information that should not be shared. They will guide you on where to put the data.

  1. If you're just testing the UI/frontend, just have docker installed in your terminal and have Docker desktop running. You can install docker here.

  2. Download the ZIP file (Scroll to the green button 'Code' > 'Local' tab > Download ZIP) and unzip it in your directory of choice.

  3. Right click the folder which you unzipped and copy its path (the location where the folder is stored at). Open a new terminal (command prompt on windows/terminal on Mac), and type cd <path-to-the-directory-which-you-copied>.

  4. Verify docker is installed with docker -v (If the terminal says docker is not recognised, try reopening another terminal, failing which, restart your computer) and ensure that you have docker desktop open (important!).

  5. Run docker compose -f docker-compose.prod.yml up --build -d.

  6. Verify the containers are running by going to docker desktop and ensuring all container icons are green.

  7. Go to localhost:3000 on your browser, and verify that you can see the site.

  8. For contributing, see CONTRIBUTING.md

thanks

thank you for coming here :kekw:

About

Application to manage raffles interact’s administration

Resources

Contributing

Stars

Watchers

Forks

Contributors 5