-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feature/workflow-tests
# Conflicts: # package.json # pnpm-lock.yaml
- Loading branch information
Showing
3 changed files
with
97 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,30 @@ | ||
# chalmers.it | ||
A to-be rewrite of [chalmersit-rails](https://github.com/cthit/chalmersit-rails) | ||
An ongoing rewrite of [chalmersit-rails](https://github.com/cthit/chalmersit-rails) in Next.js | ||
|
||
## Suggestions | ||
Suggestions are very welcome, and if you wish to create one, please create an issue and tag it with the `suggestion` label. | ||
## Suggestions and Contributions | ||
Suggestions are very welcome, and if you wish to create one, please create an issue using one of the templates. | ||
Contributions are also welcome, feel free to create a pull request with your changes. | ||
|
||
# Building and running | ||
|
||
## Prerequisites | ||
A few things are required to run the project: | ||
1. [Node.js](https://nodejs.org/en/) v20 for running the web server | ||
2. Docker for running other services | ||
3. pnpm (installed with `npm install -g pnpm`) | ||
|
||
## Running in development | ||
1. Install packages with `pnpm install` | ||
2. Start services by running `docker-compose -f docker-compose.dev.yml up -d` | ||
3. Set up the database by running `pnpm prisma generate` and `pnpm prisma db push` | ||
4. Run `pnpm run dev` to start the development server | ||
|
||
## Production use | ||
|
||
The easiest to run the project in production mode is to use the docker-compose file in the root of the project. | ||
This will start all the services needed, and expose the web server on port 3000. | ||
|
||
The project can also be compiled into a minimized file structure, which can be run with just Node. | ||
This is done by running `pnpm run build`, which will build the project to `.next/standalone`. | ||
Services will however be needed to be started separately. | ||
The project is also compiled this way when building the docker image. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.