Skip to content

A Node server to manage the data transactions for the Leyline tabletop inventory app.

License

Notifications You must be signed in to change notification settings

Villa-Diodati/leyline-data

Repository files navigation

leyline-data

A Node server to manage the data transactions for the Leyline tabletop inventory app.

Setup

Clone this project and run either npm install or yarn.

This project uses a MongoDB instance hosted via mlab.com. You can create your own mlab instance to test this data by following the standard free mlab creation process. Once the instance is created, set up a new User for the database (usually via the "Users" tab on the database home page), and then take note of the URI string displayed at the top of the database's homepage, which might look something like this: mongodb://<dbuser>:<dbpassword>@ds#12345.mlab.com:12345/DB_NAME

In the project's config/ folder, duplicate the index.sample.js file and rename it to simply index.js. The following values from the above example URI string will correspond with the values in the config/index.js file:

module.exports = {
  dbUser: '<dbuser>',
  dbPassword: '<dbpassword>',
  ds: 'ds#',
  mlabPort: 12345,
  mlabDBName: 'DB_NAME',
}

Replace these example values with the ones that match your own mlab URI string. The values for <dbuser> and <dbpassword> will be the username and password you had recently created through your new database's "Users" tab.

Start the server in development mode by running npm start dev or yarn dev.

At this stage of development, this is all that is required to setup and run this project

About

A Node server to manage the data transactions for the Leyline tabletop inventory app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published