Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 90432fc

Browse files
committed
Boilerplate setup and init commit for Events
- Setup biolderplate for using GraphQL, Appolo Client, PostgreSQL DB, Sequelize ORM for backend - Added GraphQL schema for each of the model - Implemented and tested User and Social Profile schema by running queries using the interactive GraphQL playground. - Added Babel to have the syntactic sugar of ES6 added to the project.
1 parent 4603336 commit 90432fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+4444
-1233
lines changed

.babelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": [
3+
"es2015",
4+
"stage-2"
5+
]
6+
}

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DB_USER=root
2+
DB_PASSWORD=null
3+
DB_HOST=localhost
4+
DB_PORT=5432
5+
DB_NAME=openrank-dev
6+
JWT_SECRET=jwt-secret

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.md

.sequelizerc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require('dotenv').config();
2+
const path = require('path');
3+
4+
module.exports = {
5+
"config": path.resolve('./src/config', 'config.js'),
6+
"models-path": path.resolve('./src/models'),
7+
"seeders-path": path.resolve('./src/seeders'),
8+
"migrations-path": path.resolve('./src/migrations')
9+
};

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"eslint.enable": false
3+
}

Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/env

Whitespace-only changes.

bin/www

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// This will be our application entry. We'll setup our server here.
2+
// Babel is to support ES6
3+
4+
require('babel-register')
5+
require("babel-core/register");
6+
require("babel-polyfill"); // If you use async and await
7+
8+
// Configuring the app and server
9+
//require('dotenv').config()
10+
//const http = require('http');
11+
require('../src/index'); // The express app we just created

index.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

models/User.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy