- Clone this repo
- Install dependencies
- npm install
- Create a POSTGRESQL user with CREATEDB and PASSWORD in PSQL.
- CREATE USER <'name'> WITH CREATEDB PASSWORD <'password'>
-
Create a .env file in the backend directory based on the .env.example
-
Enter your username and password information into your .env file along with your desired database name, a secured combination of characters for your JWT_Secret, and your PORT(generally 5000)
-
Add the following proxy to your package.json file within your frontend directory, replacing or keeping the 5000 port to match your PORT configuration found in your .env file.
- "proxy": "http://localhost:5000"
- Create database, migrate, and seed models:
- npx dotenv sequelize db:create
- npx dotenv sequelize db:migrate
- npx dotenv sequelize db:seed:all
-
Start the server by running npm start!
-
A demo user button is available to use or you may create a new user account by clicking on "Sign up" in the nav bar.
Once users are logged in they are redirected to a feed of all the questions sorted by the most recently asked. From the nav bar they can create questions and search for them. They can also answer questions either on the feed or from the individual question page.
Users can also find questions sorted by category, we used JavaScript and a SQL query to set this up.





