An initial boilerplate built with Next.js + Apollo (Server & Client) + GraphQL + Sequelize + Material UI
This repository is an initial point that helps you can start a simple web application with Next.js and Apollo.
The application includes both GraphQL API and Frontend layers in a single source package (although these layers should be separated in the big project). For database layer, the project uses SQLite, which can be replaced with the other SQL databases such as MySQL, Postgres, MariaDB and Microsoft SQL Server.
You need to install these packages below to run the application locally.
- Clone the repo
then
git clone https://github.com/antrant/next-js-apollo-initial-boilerplate.git
cd /to/your/repo
- Install Node packages
yarn install
- Clone
.env
file from.env.example
, change the file content to yours. - Run database migration:
- Change
config/config.json
content to yours. - Run migration
npx sequelize-cli db:migrate
- Change
- Start application in development mode
yarn dev
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
LinkedIn: An Tran
Project Link: Next.js Apollo Initial Boilerplate