/cf-jsbackend-blog

Blog project for the Bootcamp JavaScript in Backend and the Bootcamp of React (CodigoFacilito.com)

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

📝 Blog project for the Bootcamp JavaScript in Backend and the Bootcamp of React (CodigoFacilito.com)

Backend Version

NestJS TypeScript PostgreSQL JWT Passport

Frontend Version

Vite React TypeScript HTML5 CSS3 Bootstrap

Description

This is a merge of two final projects of bootcamps from Codigofacilito.com:

The project is a Blog site, with posts, categories, users with roles as administrators, moderators and editors, and some other stuff that will be added in near future.

Backend - Set env constants

Rename the required file and complete the constants:

.env.development.sample
.env.production.sample
.env.testing.sample

to:

.env.development
.env.production
.env.testing

The default port is 3001. Facebook, Google and Twitter keys and secrets are requiered (I will add an enable option in each).

Backend - Installation

$ npm install

Backend - Running the app

Linux/Mac

# development
$ npm --prefix backend/ run start

# watch mode
$ npm --prefix backend/ run start:dev

# production mode
$ npm --prefix backend/ run start:prod

Windows

# development
$ npm --prefix backend/ run start

# watch mode
$ npm --prefix backend/ run startw:dev

# production mode
$ npm --prefix backend/ run startw:prod

Backend - Endpoint information

Backend - Postman Collections of Endpoints

Frontend - Set env constants

Rename the required file and complete the constants:

.env.development.sample
.env.production.sample
.env.testing.sample

to:

.env.development
.env.production
.env.testing

The default port is 3000.

Frontend - Installation

$ npm install

Frontend - Running the app

Linux/Mac

# development
$ npm --prefix frontend/ run start:dev

# production mode
$ npm --prefix frontend/ run start:prod

Windows

# development
$ npm --prefix frontend/ run startw:dev

# production mode
$ npm --prefix frontend/ run startw:prod

Browser

Open http://localhost:3000 to view it in the browser.

Docker

If you have Docker installed on your system, in the root directory, run:

docker-compose up -d --build

License

This Blog is GPL-3.0-1 licensed.