Skip to content

Commit

Permalink
Merge pull request #5 from jenniekibiri/signup
Browse files Browse the repository at this point in the history
implement signup API
  • Loading branch information
mazma1 authored Jul 27, 2020
2 parents 0807fa9 + 1613a92 commit 784c69d
Show file tree
Hide file tree
Showing 15 changed files with 4,187 additions and 4,584 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"presets": ["@babel/preset-env"]
"presets": ["@babel/preset-env"],
"plugins": ["@babel/transform-runtime"]
}
7 changes: 6 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
DB_URL_DEV=postgres://database_username:password@localhost:5432/database_name
user=<database user>
password=<database password>
database=<database name>
host=localhost
dbport=5432
secret=<any secure string of your choice>
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
env: {
browser: true,
es2020: true,
node: true,
},
extends: [
'airbnb-base',
],
parserOptions: {
ecmaVersion: 11,
sourceType: 'module',
},
rules: {
},
};
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A simple authentication API for the [books gallery app](https://github.com/she-c
### Database Setup
1. Create a Postgres database for your local development with any name of your choice.

2. Create a `.env` file in the root directory using the sample `.env.sample` file and update the database URL with your connection credentials
2. Create a `.env` file in the root directory by copying the [sample file](.env.sample) and updating the database variables with your connection credentials, as well as the JWT signing secret.

2. Globally install sequelize cli
```
Expand Down
5 changes: 4 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
{
"url": "heroku/nodejs"
}
]
],
"scripts": {
"postdeploy": "./node_modules/.bin/sequelize db:migrate"
}
}
Loading

0 comments on commit 784c69d

Please sign in to comment.