https://github.com/steveleetn91/express-nextjs
Task Module
https://github.com/steveleetn91/express-nextjs
Last synced: 10 months ago
JSON representation
Task Module
- Host: GitHub
- URL: https://github.com/steveleetn91/express-nextjs
- Owner: steveleetn91
- License: apache-2.0
- Created: 2022-07-11T13:52:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-11T14:40:13.000Z (over 3 years ago)
- Last Synced: 2025-01-03T23:24:59.545Z (12 months ago)
- Language: JavaScript
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Task Module
This module use NEXTJS and EXPRESSJS to built a module manage task. This only for testing and it has not UNIT TESTING.
## Folders
- ./express this is folder for backend (API)
- ./react-nextjs this is folder for frontend (API)
## ExpressJS
Currently we using MONGODB.
### Root
./express
### How to setup ?
First step you need copy `env.example` to `.env`. Don't forget config MongoDB connect at `.env`. Then run `npm install`
### How to change port?
You are really can do it at `.env`. That's `PORT` field.
### How to start?
To start you need run `npm run start`
## NextJS
### Root
./react-nextjs
### How to setup?
Run `npm install`
### How to start development?
To start you need run `npm run dev`
### How to start production?
To start you need run `npm run build`, next step start server `npm run start`
### Note
If you wanna changed API HOST. You are really can do it at `next.config.js`