Skip to content

santiment/app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

No Docker way

  1. mv .env.local.example .env.local
  2. Fill .env.local
  3. npm i
  4. npm start
  5. npm test - One time run all tests
  6. npm run test:js - Run js tests watcher

Docker way

  • make start - Start your docker container with dev server
  • make sh - Bash in your dev container
  • make logs - Show logs
  • make format - Run npm run format

VSCODE

  1. Install Remote-Containers extension in VSCode
  2. Run Remote-Containers: Open Folder in Container... through command palette (F1 or Cmd-Shift-P)
  3. Wait until first build and install has completed (note: this can take a while - it might also help to increase the memory docker has been allocated)
  4. Open Terminal within VSCode (ctrl-`)

Local development (under HTTPS)

To start your local development you need to:

  1. Whitelist your domain
    1. Open /etc/hosts
    2. Add the following line: 127.0.0.1 local.santiment.net
    3. Save the file
  2. In .env.local add the following lines
    HTTPS=true
    HOST='local.santiment.net'
  3. Install mkcert
  4. Create your own certificate authority on your system
    mkcert -install
  5. Create a certificate for your custom domain and concatenate the two files
    mkcert "127.0.0.1" "localhost" "local.santiment.net"
    cat *-key.pem *.pem > server.pem
  6. Create /.cert folder and move the server.pem file into it in app root directory
  7. Run npm start

Lint/Format

We use prettier-standard. eslint rules from standard and format by prettier. Setup your editor with prettier-standard lint rules - https://github.com/sheerun/prettier-standard

Learn More

Become a SanDev

We're hiring developers, support people, and product managers all the time. Please check our open positions

Contact us

Community

Join thousands of members worldwide in our community server.

Get the Latest News

Any other questions, reach out to us at [email protected]. We’d happy to help!