https://github.com/platzidev/oss
The Platzi Open Source Software published packages
https://github.com/platzidev/oss
open-source platzi react
Last synced: 2 months ago
JSON representation
The Platzi Open Source Software published packages
- Host: GitHub
- URL: https://github.com/platzidev/oss
- Owner: PlatziDev
- License: mit
- Created: 2017-01-12T21:13:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-26T20:56:06.000Z (over 2 years ago)
- Last Synced: 2025-04-13T00:19:20.271Z (about 1 year ago)
- Topics: open-source, platzi, react
- Language: JavaScript
- Homepage: https://platzi-oss.now.sh/
- Size: 260 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Platzi Open Source Software
The Platzi Open Source Software published packages.
## How use it
### Development
Install dependencies with:
```bash
npm i
```
Then run the server with:
```bash
npm start
```
### Production
Install dependencies with:
```bash
npm i
```
Then run the server for production with:
```bash
npm run start:prod
```
This will automatically run `npm run build` to generate the production ready files.
## Enviroment variables
- `NODE_ENV`: the envirment (default: `development`)
- `PORT`: the private port (default: `3000`)
- `HOST`: the private host (default: `localhost`)
- `P_PROT`: the public protocol (default: `http`)
- `P_PORT`: the public port (default: `3000`)
- `P_HOST`: the public host (default: `localhost`)
The private **port** and **host** are used to run the app inside a docker container.
The public **port**, **host** and **protocol** are used to fetch data from the server in the React application.