Neaj-Morshad-101/realworld-example-app
RealWorld example app, created to demonstrate a fully fledged fullstack application built with React / Express.js / Sequelize / PostgreSQL including CRUD operations, authentication, routing, pagination, and more.
React / Express.js / Sequelize / PostgreSQL codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
Demo app | RealWorld Example Apps | 
This codebase was created to demonstrate a fully fledged fullstack application built with React / Express.js / Sequelize / PostgreSQL including CRUD operations, authentication, routing, pagination, and more.
For more information on how to this works with other frontends/backends, head over to the RealWorld repo.
Prerequisites
- Make sure your have a Node.js (v14 or newer) installed.
- Make sure you have your database setup.
Installation
Install all the npm dependencies with the following command:
npm installDevelopment
Configuration
In the backend directory, duplicate and remane the.env.example file, name it .env, and modify it to set all the required private development environment variables.
Optionally you can run the following command to populate your database with some dummy data:
npx -w backend sequelize-cli db:seed:all
Starting the development server
Start the development environment with the following command:
npm run dev-
The frontend website should be available at http://localhost:3000/.
-
The backend API should be available at http://localhost:3001/api.
Testing
To run the tests, run the following command:
npm testProduction
The following command will build the production version of the app:
npm start