Skip to content

API made with Strapi, to seed the Landing Page NextJS data developed in the React Avançado course.

License

Notifications You must be signed in to change notification settings

Pedro-Estevao/wongames-api

Repository files navigation

Shows an illustrated sun in light mode and a moon with stars in dark mode.

WonGames - Landing Page API

This is the API developed with Strapi to seed the WonGames landing page for the React Avançado course.

Requirements

This project uses the MySQL database, so to make it work, you need to have it installed on your local machine, or if you prefer, use Docker.

The configuration for the Database can be found in the directory config/database.js

Getting Started

First, run the command to install the dependencies:

$ npm install

Create an .env file in the project root, or edit if it already exists, similar to the following structure:

HOST = 0.0.0.0 #Host where strapi will start
PORT = 1337 #Port where strapi will start 
APP_KEYS = "toBeModified1,toBeModified2"
API_TOKEN_SALT = tobemodified
ADMIN_JWT_SECRET = tobemodified
TRANSFER_TOKEN_SALT = tobemodified
JWT_SECRET = tobemodified

# Database
DATABASE_CLIENT = "YOUR_DATABASE_NAME" #Your database name: mysql, postgresql, mariadb (Check the supported databases in the strapi documentation)
DATABASE_HOST = "YOUR_DATABASE_HOST" 
DATABASE_PORT = "YOUR_DATABASE_PORT"
DATABASE_NAME = "YOUR_DATABASE_NAME"
DATABASE_USERNAME = "YOUR_DATABASE_USER"
DATABASE_PASSWORD = "YOUR_DATABASE_PASS"
DATABASE_SSL = "YOUR_DATABASE_SSL"
JWT_SECRET = "YOUR_DATABASE_JWT_SECRETE"

Commands

dev

Start your Strapi application with autoReload enabled. Learn more

$ npm run dev

start

Start your Strapi application with autoReload disabled. Learn more

$ npm run start

build

Build your admin panel. Learn more

$ npm run build

⚙️ Deployment

Strapi gives you many possible deployment options for your project including Strapi Cloud. Browse the deployment section of the documentation to find the best solution for your use case.

About

API made with Strapi, to seed the Landing Page NextJS data developed in the React Avançado course.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published