An API to serve endpoints to the Budding App
git clone https://github.com/thorners55/budding-back-end
node v12
npm v6.14.5
postgresql v12.2
npm install
Add a knexfile.js in the root directory and add the following code.
- user and password should be your postgres credentials (not required for mac users)
const ENV = process.env.NODE_ENV || 'development';
const { DB_URL } = process.env;
const baseConfig = {
client: 'pg',
migrations: {
directory: './db/migrations',
},
seeds: {
directory: './db/seeds',
},
};
const customConfig = {
development: {
connection: {
database: 'budding_app',
// user,
// password
},
},
test: {
connection: {
database: 'budding_app_test',
// user,
// password
},
},
};
module.exports = { ...customConfig[ENV], ...baseConfig };
Create databases
npm run setup-dbs
Seed databases
npm run seed:test
npm run seed:dev
npm run dev-server
npm test
- Stephanie Thornley - thorners55
- Zach Pinfold - ZachPinfold
- Joao Mak - joao-mak
- Richard Bacon - richardjohnbacon