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
- Host: GitHub
- URL: https://github.com/dylanlott/builtright-server
- Owner: dylanlott
- Created: 2017-02-24T06:35:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-11T20:21:54.000Z (about 9 years ago)
- Last Synced: 2025-01-30T01:29:46.073Z (over 1 year ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.