Sapper template based on the default sapper template with the addition of mongodb through mongoose and passport for user authentication
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
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.
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
If you find any bug or weird behaviour please open an issue in this repo.