BlogCafe is a mock assessment submission for https://github.com/ROTBOW/aA_Mock_TakeHomeChallenge
Please run this project locally in development as production build has not been considered.
- Backend: nodeJs, express, sequelize, postgreSQL
- Frontend: Vite, Chakra UI, React, Zustand
-
Clone this repo.
-
`https://github.com/suwanshree/aA_mock_takehome`
-
-
Install dependencies from the backend_challenge directory.
-
`npm install`
-
-
Install dependencies from the frontend_challenge directory.
-
`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 found within the same directory.
-
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 also add 5000 for your PORT.
-
Create Database, Migrate, and Seed models.
-
npx dotenv sequelize db:create
-
npx dotenv sequelize db:migrate
-
npx dotenv sequelize db:seed:all
-
-
Start the services in the backend_challenge directory.
-
npm start
-
-
Start the services in the frontend_challenge directory, which should open the project in your default browser. If not, navigate to Frontend Server.
-
npm run dev
-
-
You can start using the application and perform CRUD operations.
Users can perform the following actions.
- Add/View/Delete Coffees
- Add/View/Delete Posts