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

https://github.com/bjyurkovich/fituprising-university


https://github.com/bjyurkovich/fituprising-university

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Getting Started

Clone the repo and run:

```bash
sudo npm install
```

You will need to make a file called `lib/dbconfig.js`. In the file, you need to put this:

```javascript
//DB stuff
var mysql = require('mysql')

module.exports.connection = mysql.createConnection({
host: "localhost",
user : "root",
password : "password",
database : "fituprisingU"
});

module.exports.knex = require('knex')({
client: 'mysql',
connection: {
host : 'localhost',
user : 'root',
password : 'password',
database : 'fituprisingU',
charset : 'utf8'
}
});
```
Changing the username and password for your database.

To load the database,

```bash
mysql -u root -p < data/data-model.sql
```

To seed the DB with initial data:

```bash
mysql -u root -p < data/initialData.sql
```

Then start the server:

```bash
nodemon app.js
```