A very simple app with account creation, login, and updating. Intended for modification to build a larger app with accounts.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
sass
scripts
src
views
.gitignore
README.md
gulpfile.js
package.json

README.md

Express JS Typescript Boilerplate

Description

A very simple app with account creation, login, and updating. Intended for modification to build a larger app with accounts. This app uses passport authentication and mongoose for a user model. This repository is primarily to show my competency with Typescript, Node.js, and MongoDB.

If you use this in production you might want to add:

  • password confirmation
  • requiring password reentry for update
  • data validation for email addresses
  • password requirements (ex. min length)

Usage

Install dependencies:

npm install

Build SASS (optional):

gulp build

Create a .env file in the root directory and fill in:

MONGODB=url_of_mongodb
SECRET=secret_for_sessions

Before building start mongodb. If you want to run locally you can use the script provided. Make sure you have mongodb installed. Script will use ./devdb for file storage:

./scripts/mongo.sh

Run:

npm start

To build, run server, and watch for SASS updates (for development):

./scripts/build_dev.sh