Next.js statically generated blog
- Fork it (https://github.com/mpirescarvalho/blogr/fork)
- Create your feature branch (
git checkout -b feature/awesome
) - Commit your changes (
git commit -am 'Add awesome feature'
) - Push to the branch (
git push origin feature/awesome
) - Create a new Pull Request
You'll need Node.js installed on your computer in order to build this app.
Clone the repository:
$ git clone https://github.com/mpirescarvalho/blogr.git
$ cd blogr
To run the backend, you'll need a working MongoDB instance. You can use MongoDB Atlas or install it locally.
Go to backend
folder and create a .env
file using .env.template
as example.
Now you can proceed to run the backend.
Inside backend
folder:
$ npm install
$ npm run dev
Runs the server in the development mode.
To run the frontend, go to frontend
folder and create a .env
file using .env.template
as example. If you ran the backend in the previous step, your api url will be localhost:3333
.env
Now you can proceed to run the frontend.
Inside frontend
folder:
$ npm install
$ npm run dev
Runs the web app in the development mode.