Skip to content

Sapper template with the addition of mongodb through mongoose and passport for user authentication.

Notifications You must be signed in to change notification settings

YerkoPalma/sapper-auth-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sapper-auth-template

Sapper template based on the default sapper template with the addition of mongodb through mongoose and passport for user authentication

Getting started

Use any of the documented ways to start a project, for example degit:

npx degit "yerkopalma/sapper-auth-template" my-app

Then install and run

cd my-app
npm install
npm run dev

Additions

What makes this template different from the default Sapper template is mainly the auth system, but there are other things also:

  • Use Bulma framework through Svelma.
  • Use dotenv for env variables (you should create your .env file since is gitignored).
  • Use sass with svelte-preprocess so you can use sass on your components.
  • Use mongodb with Mongoose ORM.

Final notes

Some other things that deserve to be pointed out

  • Svelma components are importer from source, so they can be server side rendered.
  • Authenticated users are kept in Sapper session store

Contribute

If you find any bug or weird behaviour please open an issue in this repo.

About

Sapper template with the addition of mongodb through mongoose and passport for user authentication.

Topics

Resources

Stars

Watchers

Forks