A monorepo for Raffles Interact's administrative application. Built with Next.js and Express along with the Bun runtime.
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
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
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.
-
If you're just testing the UI/frontend, just have
dockerinstalled in your terminal and have Docker desktop running. You can install docker here. -
Download the ZIP file (Scroll to the green button 'Code' > 'Local' tab > Download ZIP) and unzip it in your directory of choice.
-
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>. -
Verify docker is installed with
docker -v(If the terminal saysdockeris not recognised, try reopening another terminal, failing which, restart your computer) and ensure that you have docker desktop open (important!). -
Run
docker compose -f docker-compose.prod.yml up --build -d. -
Verify the containers are running by going to docker desktop and ensuring all container icons are green.
-
Go to
localhost:3000on your browser, and verify that you can see the site. -
For contributing, see CONTRIBUTING.md
thank you for coming here :kekw: