janetdocs
A community documentation site for the janet programming language
Install janet
The first step is to get janet installed.
This uses homebrew for simplicity, but feel free to come up with whatever vagrant, docker or nixOS thing you'd like:
brew install janet
Get Started
After janet is installed there are a few steps to get this project up and running:
- Clone this repo
git clone https://github.com/swlkr/janetdocs.git
- Move
.env.sample
to.env
cd janetdocs
mv `.env.sample` `.env`
- Change the github client and secret ids to something real
You can create your own github oauth app or whatever it's called now to get your keys to get github sign in working
- Install deps
# make sure you're in the janetdocs directory
jpm deps
- Migrate the database
# make sure you're in the janetdocs directory
joy migrate
- Seed the database with the docs
# make sure you're in the janetdocs directory
janet seed.janet
And that's it! You should be able to poke around at this point and see what's going on, by default the server starts on port 9001:
# make sure you're in the janetdocs directory
janet main.janet