An open API service indexing awesome lists of open source software.

https://github.com/dylanlott/builtright-server

Nodal server using PostgreSQL for www.builtrightapp.com
https://github.com/dylanlott/builtright-server

Last synced: about 1 year ago
JSON representation

Nodal server using PostgreSQL for www.builtrightapp.com

Awesome Lists containing this project

README

          

# A Nodal Application

## Running Locally

```sh
nodal s
```

Your app should now be running on [localhost:3000](http://localhost:3000/).

Generated by [Nodal](http://nodaljs.com)

# Hand Deploy with Docker

### For development
```sh
docker run -d --name builtrightpostgres -p 5432:5432 -v builtright-pg:/var/lib/postgresql/data -e POSTGRES_DB=builtright_nodal_development -e POSTGRES_USER=postgres postgres:latest
```

### For production:
```
docker run -d --name builtrightpostgres -p 5432:5432 -v builtright-pg:/var/lib/postgresql/data -e POSTGRES_DB=builtright_nodal_production -e POSTGRES_USER=postgres postgres:latest -e POSTGRES_PASSWORD="superdopepassword"
```

```sh
docker build -t builtright-nodal .
```

If you've started the database container before, you can simply run:

```sh
docker start builtrightpostgres
```

## Documentation

### Login

POST `/access_token`

```json
{
"username": "dylanlott",
"password": "password",
"grant_type": "password"
}
```

### Sign Up

POST `/users`

```json
{
"email": "",
"username": "",
"password": ""
}
```

Email is an optional argument.