---
# System prepended metadata

title: Setting up the p2 Auth Template

---

# Setting up the p2 Auth Template

## Set up the repo with github

You can re-initialize the git repo to start the project with a blank slate

* `rm -rf .git` to delete the repo
* `git init` to initialize a new git repo
* git add, git commit, and then create a new repo on github. You can follow the new repo setup instructions to push up to github

## Setting up the models 

It is likely you will want to add some cols ot your user model, the easyiest way is to un-migrate the tables from the database.

* use `sequelize db:migrate:undo:all` to remove the tables from your db
* update your database name in your `config.json` 
* use `sequelize db:create` to create the new database
* delete the user model file AND the user migration file. Add the extra columns you want in your user table to this command: `sequelize model:create --name user --attributes email:string,password:string` (the auth template needs your use model to have these columns, so don't change them)
* run migrations!