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

https://github.com/axelniklasson/scubalog-backend

Backend code for ScubaLog.
https://github.com/axelniklasson/scubalog-backend

api backend express mongodb nodejs

Last synced: about 2 months ago
JSON representation

Backend code for ScubaLog.

Awesome Lists containing this project

README

          

# ScubaLog backend
Backend for scubalog.io.

## Development
### Setup
To run the server locally, first create a file called dev.env.js in the app directory and edit the file to fit your connection details to the mongoDB database.
```
// app/dev.env.js

process.env.MONGO_HOST = 'host';
process.env.MONGO_PORT = 'port';
process.env.MONGO_DATABASE = 'db';
process.env.MONGO_USER = 'user';
process.env.MONGO_PASS = 'pass';
```

### Run
```
npm install
npm run dev
```

## Production
Create a file called prod.env.js, with the same structure as dev.env.js, in the app directory and simply run

```
npm run prod
```