Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

smartlogic/smartnote

Open more actions menu

Repository files navigation

SmartNote

SmartNote is an app to track internal documentation, starting with FAQs around development.

Setup

First install these:

Once those are installed you can setup the application. Check .tool-versions for needed versions if installing manually.

# This installs elixir/erlang/nodejs at the versions required
asdf plugin add elixir
asdf plugin add nodejs
asdf install

# Install elixir dependencies
mix deps.get
mix compile

# Install yarn and the rest of the javascript dependencies
npm install -g yarn
cd assets && yarn install && cd ..

# Create the database and migrate for dev & test
mix ecto.create
mix ecto.migrate
MIX_ENV=test mix ecto.migrate.reset

# Make sure tests pass
mix test

# See `Local Development` below to configure `.env.dev`
# Once complete, run the server
mix phx.server

Local Development

In order to run locally, you'll need a .env.dev file with the following filled in:

GITHUB_ALLOWED_ORGANIZATIONS=comma,separated,list,of,github,orgs
GITHUB_CLIENT_ID=...
GITHUB_CLIENT_SECRET=...

Create a GitHub OAuth application and copy the client id and secret. Make sure the authorized redirect uri is http://localhost:4000/auth/github/callback.

Kubernetes

To migrate on kubernetes, find a pod and exec into it and run this:

smart_note eval "SmartNote.ReleaseTasks.Migrate.run()"

Deployment

DNS is for notes.smartlogic.io, which is set in Cloudflare. The machine is running in digitalocean.

About

SmartNote is a knowledge base system specifically geared for common development questions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.