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.
- Host: GitHub
- URL: https://github.com/axelniklasson/scubalog-backend
- Owner: axelniklasson
- Created: 2017-07-16T07:53:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-04T19:50:01.000Z (over 8 years ago)
- Last Synced: 2025-04-10T00:54:19.010Z (about 1 year ago)
- Topics: api, backend, express, mongodb, nodejs
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```