]> git.r.bdr.sh - rbdr/forum/blame - README.md
Update dependencies
[rbdr/forum] / README.md
CommitLineData
5a2bb071
RBR
1# Forum
2
1be5af93
BB
3A forum for the year 3000.
4
38416066
BB
5## Running the server
6
7This project provides a [docker compose][docker-compose] configuration
8to easily run the service. In order to run the server, run
9`docker-compose up`
10
1be5af93
BB
11## What you will need to get started
12
13This project uses [node][node] for most of its development processes.
14Once you have node installed according to the instructions there, run
15`npm install` from the root of the project.
16
17For local development serve the page by running `npm watch` from the
18root of the project.
19
20## Installing git hooks
21
22This repo contains a pre-commit git hook so indent will run before every
23commit. Run `npm run setup-hooks` to install it.
24
38416066
BB
25## Running migrations on the docker environment
26
27After building the app with docker compose, you can set up the database
28with `docker exec forum_forum_1 npm run db:setup`. This will run
29migrations and seed default data.
30
31If you only want to run migrations, you should run
32`docker exec forum_forum_1 npm run db:migrate` instead.
33
34If you only want to seed the database, you should run
35`docker exec forum_forum_1 npm run db:seed` instead.
36
1be5af93 37[node]: https://nodejs.org/en/