Git Product home page Git Product logo

sep-project's Introduction

SEP Server

Using the Server:

Since we are deploying using Heroku, you will not have to run the server locally. The only time you should run it locally is for development and testing. For testing the api, using postman is the way to go.

Using the Database:

In order to connect to the database, you need to create a config.js file with the path /database/config.js. The file should look like this:

var config = { development: { database: { host:'', db:'', user:'', password: '', }, }, production: { database: { host: 'scuntprod.coua71lt8vnx.us-west-2.rds.amazonaws.com:3306', user: 'thomask', password: 'SEPecse428', db: 'scuntProd' } } }; module.exports = config;

where development is your local DB and production will have to credentials for the AWS MySQL server. Choosing between development and production will be chosen using environment variables.

In order to push the schema, run: npm start DB=up In order to bring down the schema, run: npm start DB=down

NOTE: It seems that the default MySQL port it looks for os 3306. If yours is different, simply add a field in the array in the config file.

Populate Database With Sample Data

For a small set of data a simple npm test will fill the database with some usefule data. for a more extensive set of data, you can run "npm start seed". This is will ad a more complete dataset to the DB.

sep-project's People

Contributors

ozhilin avatar tekaratzas avatar chiquelo avatar michael2904 avatar marcomang avatar negarehmir avatar yordann avatar philippe-d avatar

Watchers

 avatar  avatar mwang avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.