Welcome to the Catoura wiki!
This project is based off of Quora but for cats!
Catoura, a Quora clone, is a forum application that allow users to post questions and answers that can be viewed by other cats.
A Live deployment of Catoura is hosted on heroku
List of features needed for the Minimum Viable Product (MVP)
List of user stories for each feature
API routes that return JSON and that will be used by the frontend routes
Schema of the PostgresQL database
Routes that return an HTML page that the user can interact with
- Full CRUD Features for Questions
- Full CRUD Features for Answers to a Question
- Full CRUD features for Comments to an Answer
- CRUD features for Topics and allowing questions to add Topics
- CRUD features for upvote and downvotes on question,answers, and comments
- Setup AWS for Images for Answer and Questions
- Rich Text Libraries for fancy text fields
- React.js
- Node.js
- Express
- PostgreSQL
- PUG
-
Clone this repo
git clone https://github.com/vernfongchao/Catoura.git
-
Install dependencies from the root directoy
npm install
-
Create a
PostgreSQL
user withCREATEDB
andPassword
CREATE USER <name> with CREATEDB PASSWORD <'password'>
-
Create a
.env
in the backend directory based on the.env.example
found within the backend directory -
Enter your username and password information into your
.env
file along with your desired database name, a secured combination of characters for yourSESSION_SECRET
-
CREATE Database,Migrate, and Seed models in your backend terminal
Method 1
npx dotenv sequelize db:create
npx dotenv sequelize db:migrate
npx dotenv sequelize db:seed:all
Method 2
npm run db:setup
-
Start the server in the terminal
npm start
-
There is a Demo user or create an account to begin using Catoura