https://github.com/bjyurkovich/fituprising-university
https://github.com/bjyurkovich/fituprising-university
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bjyurkovich/fituprising-university
- Owner: bjyurkovich
- Created: 2015-09-02T17:12:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-24T00:00:14.000Z (over 9 years ago)
- Last Synced: 2025-01-21T06:43:30.853Z (5 months ago)
- Language: CSS
- Size: 1.02 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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
```