-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from saucecodee/develop
Develop
- Loading branch information
Showing
7 changed files
with
67 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
node_modules | ||
|
||
# production env files | ||
.env | ||
src/config/config.json | ||
src/config/env/prod.env.json | ||
|
||
# exclude everything | ||
# exclude files in uploads | ||
uploads/* | ||
|
||
# exception to the rule | ||
!uploads/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# <%= $projectName %> | ||
|
||
This project was generated with [BàngáJS](https://bangajs.netlify.app/) v<%= $version %>. | ||
|
||
## Installation | ||
|
||
1. Install dependencies - `npm install` | ||
|
||
2. Create a new file `.env` if it doesn't exist and copy the contents of `env.dev` into it to be able to run your server on production environment. | ||
|
||
3. Then you need to provide values for the configuration env files at the `src/config/env directory`. | ||
|
||
|
||
## Running the server locally | ||
|
||
1. Start up the server - Run `npm start` | `npm run dev` | ||
|
||
2. Server should be running on http://localhost:2020/ by default | ||
|
||
## Code scaffolding | ||
|
||
Run `banga generate <type> <name>` to generate a new file types. Visit [here](https://bangajs.netlify.app/#banga-generate) for more info. | ||
|
||
## Routes | ||
|
||
| Routes | Description | Auth roles | | ||
| -----------------------------------------------------------------|----------------------------------------- | ------------------------------------- | | ||
| [POST] /api/auth/sign-up | Create a new account | none | ||
| [POST] /api/auth/sign-in | User sign in | none | ||
| [POST] /api/auth/request-email-verification | Resend verfication email | none | ||
| [POST] /api/auth/verify-email | Email verification | none | ||
| [POST] /api/auth/request-password-reset | Sends a request password email | none | ||
| [POST] /api/auth/reset-password | Reset password form handler | none | ||
| [POST] /api/users | Create a user | User | ||
| [GET] /api/users | Get all users | Admin | ||
| [GET] /api/users/:userId | Get a user | User | ||
| [UPDATE] /api/users/::userId | Update a user | User | ||
| [DELETE] /api/users/:userId | Delete a user | Admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.