Welcome to TripSit's Main Website, brought to you by THC.
This is a Next.js project bootstrapped with create-next-app
.
You have two options:
The easiest way to get going is to create a codespace.
This will automatically set up a development environment for you, and you can start editing the code right away.
- Create codespace from the repo
- Run
npm install
to makes sure it installed properly ig, this was an issue when i tried, ill loop back eventually - Run
npm run .dev
to start the development server. - Github will pop up with a thing you can click to be taken to the live site where you can see your changes.
- Develop and commit as normal, your changes should be refreshed automatically.
The preferred way to have full control (and perhaps more resources) is local development.
- Git clone the repo
- Install dependencies with
npm install
Then you have two choices:
The preferred way to deploy is with docker. This ensures that we're running on the same system with no conflicts.
- Run the
npm run website
command to build the docker image - Run the
npm run logs
command to see the logs from the container - Open http://localhost:3000 with your browser to see the result.
If you cannot run docker for whatever reason, or you're in codespace.
- run the
npm run .dev
command - Open http://localhost:3000 with your browser to see the result.
There is no support for this method, use a codespace before you use this method
But it worked on my system (tm) when im running on an ubuntu vps, so give it a shot.